jQuery 如何取消选择kendoui中的网格记录
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15477201/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to unselect the grid record in kendoui
提问by Pa1
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?
现在我想动态取消选择网格。我怎样才能做到这一点?
回答by OnaBai
回答by Surya Deepak
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..
kendo grid 有一个属性叫做selectable:true
..this 会在点击时选择整行,要取消选择行只需按 ctrl+被选中的行..