20

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?

OnaBai
  • 40,767
  • 6
  • 96
  • 125
Pa1
  • 630
  • 4
  • 11
  • 21

2 Answers2

44

Use clearSelection:

var grid = $("#grid").data("kendoGrid");
grid.clearSelection();
OnaBai
  • 40,767
  • 6
  • 96
  • 125
4

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

Surya Deepak
  • 419
  • 5
  • 16