How to change columns set of kendo grid dynamically

前端 未结 11 589
孤城傲影
孤城傲影 2020-12-04 19:08

I am trying to change the columns collection of my Kendo grid in the below way.

var grid = $(\"#grid\").data(\"kendoGrid\");
$http.get(\'/api/GetGridColumns\         


        
11条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-04 19:30

    var newDataSource = new kendo.data.DataSource({data: dataSource}); $("#grid").data("kendoGrid").setDataSource(newDataSource); $("#grid").data("kendoGrid").dataSource.read();

提交回复
热议问题