开发者

jQuery / jqgrid / Editing form events

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: '&nbsp;&开发者_如何学JAVAamp;nbsp; <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: '&nbsp;&nbsp; <span style="color : #0C66BE; font-family: Calibri">(*)</span>' }
    }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜