如何处理Kendo UI Grid行双击事件 [英] How to handle a Kendo UI Grid row double-click event
本文介绍了如何处理Kendo UI Grid行双击事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的MVC应用程序中有一个可选的KendoUI网格.当用户双击网格时,我想做些事情.
I have a selectable KendoUI grid in my MVC app. I want to do something when the user double-clicks on the grid.
我没有看到网格的双击事件.
I don't see a double-click event for the grid.
在没有暴露事件的情况下如何处理双击事件?
How may I handle the double-click event when there is none exposed?
推荐答案
使用标准的双击事件.第一次单击将选择网格行,并向其中添加.k-state-selected
类,第二次单击将触发双击事件.
Use the standard double click event. The first click will select the grid row, adding a .k-state-selected
class to it, and the second click will trigger the double click event.
$("#yourgridname").on("dblclick", "tr.k-state-selected", function () {
// insert code here
});
这篇关于如何处理Kendo UI Grid行双击事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文