How to unselect the grid record in kendoui

冷暖自知 提交于 2019-12-05 14:23:36

问题


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



来源:https://stackoverflow.com/questions/15477201/how-to-unselect-the-grid-record-in-kendoui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!