How to unselect the grid record in kendoui

2019-04-04 03:14发布

I am selecting the listview record on databound event. I have written the following code in databound

       var grid = $("#grid").data("kendoGrid");
       grid.select(grid.tbody.find(">tr:first"));

Now i want to deselect the grid dynamically. How can I do that?

2条回答
做个烂人
2楼-- · 2019-04-04 03:58

Use clearSelection:

var grid = $("#grid").data("kendoGrid");
grid.clearSelection();
查看更多
等我变得足够好
3楼-- · 2019-04-04 04:08

kendo grid has a property called selectable:true..this would select the entire row when clicked upon and to de-select the row simply press ctrl+the row which is selected..

查看更多
登录 后发表回答