jQuery / jqgrid / 编辑表单事件
我正在使用 jqGrid,我想知道是否存在读取编辑表单中双击的事件?
例如,我有一个包含 ColumnA 和 ColumnB 的网格。我想在用户在 ColumnB(在编辑表单中)下执行双击时读取事件。
谢谢!
更新:
我找到了问题的解决方案
这是代码,在此示例中我使用警报“TEST!!!”...
在 colModel 中
{ name: 'Total_uploads',
index: 'Total_uploads',
width: '100',
editable: true,
edittype: 'text',
editoptions: { size: 10, maxlength: '20',
dataInit: function (el) {
$(el).click(function () {
alert("TEST!!!");
});
}
},
editrules: { required: true },
formoptions: { label: 'Total uploads: ', elmsuffix: ' <span style="color : #0C66BE; font-family: Calibri">(*)</span>' }
}
I'm working with the jqGrid and I want to know if exists an event to read a double click in the Editing Form?
For example, I have a grid with ColumnA and ColumnB. I want read the event when the user perform a double click under ColumnB (In the Editing Form).
Thanks!
UPDATE:
I found the solution of my problem
Here is the code, to this example I use the alert "TEST!!!"...
In the colModel
{ name: 'Total_uploads',
index: 'Total_uploads',
width: '100',
editable: true,
edittype: 'text',
editoptions: { size: 10, maxlength: '20',
dataInit: function (el) {
$(el).click(function () {
alert("TEST!!!");
});
}
},
editrules: { required: true },
formoptions: { label: 'Total uploads: ', elmsuffix: ' <span style="color : #0C66BE; font-family: Calibri">(*)</span>' }
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了问题的解决方案 ^^
这是代码,在这个例子中我使用警报“TEST!!!”...
在 colModel 中
I found the solution of my problem ^^
Here is the code, to this example I use the alert "TEST!!!"...
In the colModel