How to unselect the grid record in kendoui

Pa1 picture Pa1 · Mar 18, 2013 · Viewed 23.1k times · Source

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?

Answer

OnaBai picture OnaBai · Mar 18, 2013

Use clearSelection:

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