MiBol
MiBol

Reputation: 2125

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;&nbsp; <span style="color : #0C66BE; font-family: Calibri">(*)</span>' }
        }

Upvotes: 1

Views: 1829

Answers (1)

MiBol
MiBol

Reputation: 2125

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>' }
    }

Upvotes: 1

Related Questions