简体   繁体   中英

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?

Use clearSelection :

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

kendo grid有一个名为selectable:true的属性selectable:true ..这会在单击时选择整行,取消选择行只需按ctrl +选中的行。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM