How to unselect the grid record in kendoui

2019-04-04 04:05发布

问题:

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?

回答1:

Use clearSelection:

var grid = $("#grid").data("kendoGrid");
grid.clearSelection();


回答2:

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..