Pa1
Pa1

Reputation: 630

How to unselect the grid record in kendoui

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?

Upvotes: 20

Views: 27252

Answers (2)

OnaBai
OnaBai

Reputation: 40887

Use clearSelection:

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

Upvotes: 44

Surya Deepak
Surya Deepak

Reputation: 431

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

Upvotes: 4

Related Questions