jQuery / jqgrid / 编辑表单事件

发布于 2024-12-07 13:22:52 字数 869 浏览 2 评论 0原文

我正在使用 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: '&nbsp;&nbsp; <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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

执笏见 2024-12-14 13:22:52

我找到了问题的解决方案 ^^

这是代码,在这个例子中我使用警报“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 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>' }
    }
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文