jQuery / jqgrid / Editing form events
Posted
by
MiBol
on Stack Overflow
See other posts from Stack Overflow
or by MiBol
Published on 2011-10-03T16:58:52Z
Indexed on
2012/06/01
16:41 UTC
Read the original article
Hit count: 349
I'm working with the jqGrid and I want to know if exists an event to read a double click in the Editing Form?
Has 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!
I found the solution of my problem ^^
Here is the code, to this example I use the alert "TEST!!!"...
[Thanks to Oleg to wake up my mind :P]
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>' }
}
© Stack Overflow or respective owner