I want to write an event when user click on a cell of jqgrid
. Is there build in method?
I could not find any event at this link
4 Answers
Callbacks and jQuery events are described here. jqGrid register click
handler on the body of the grid. Inside of the click
handler the callbacks beforeSelectRow
and later onCellSelect
will be called. In the same way jQuery events jqGridBeforeSelectRow
and jqGridCellSelect
will be called too.
The callbacks and the events contains e
parameter (jQuery Event object) which target property could be used to get all information about the click event if the other parameters of the beforeSelectRow
callback (or onCellSelect
callback) don't provides already what you need. The old answers: the answer, this one, this one, this one, this one, this one and many other provide you examples of the usage of onCellSelect
and beforeSelectRow
callbacks.
there is a inbuilt event.. you can find it here LINK
onCellSelect: function (rowId, iCol, content, event) {
//YOUR STUFF
}

- 47
- 9
We have double click event in jqgrid which can be used like this
ondblClickRow: function (rowId, iRow, iCol, e) { //Your Code }

- 354
- 2
- 15
you can try with this
onSelectRow: function(){
var row_id = $("#grid_nueva_caja_matriz").getGridParam('selrow');
jQuery('#grid_nueva_caja_matriz').editRow(row_id, true);
}
or you can use the differentes events how ondblClickRow you can check on the documentation of jqgrid

- 349
- 1
- 10