Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to unselect the grid record in kendoui

Tags:

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?

like image 829
Pa1 Avatar asked Mar 18 '13 12:03

Pa1


People also ask

How do I deselect Kendo grid rows?

Solution. When selection is enabled in the Grid component, the built-in option for deselecting a row or selecting multiple rows is Ctrl + click.

How do I turn off Kendo grid?

please add 'k-state-disabled' class for disabled thing in kendo. so find element which you want to disable and add this class.. $("#grid").


2 Answers

Use clearSelection:

var grid = $("#grid").data("kendoGrid");
grid.clearSelection();
like image 117
OnaBai Avatar answered Oct 10 '22 02:10

OnaBai


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

like image 37
Surya Deepak Avatar answered Oct 10 '22 00:10

Surya Deepak