如何处理 Kendo UI Grid 行双击事件 [英] How to handle a Kendo UI Grid row double-click event

查看:22
本文介绍了如何处理 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆