In this demo of jqGrid, when you click on the "Edit Selected Row" button:
it brings up an edit form.
Is there any way to double click on a row in the grid to bring up this same edit form?
Mention editLink and deleteLink in colModel name of edit and delete for display Edit and Delete button in jqgrid for each row. Show activity on this post. I got it, Just take additional column, and add formaater actions as model class. That's it.
If the row which you need highlight has the id 123 you can just use setSelection method for selecting: jQuery('#tab_Categorize'). jqGrid('setSelection', '123');
jqGrid exposes a property rowNum where you can set the number of rows to display for each page.
It can be very simple implemented as
ondblClickRow: function(rowid) {
jQuery(this).jqGrid('editGridRow', rowid);
}
you can also use any additional properties of editGridRow described in the documentation. For example
ondblClickRow: function(rowid) {
jQuery(this).jqGrid('editGridRow', rowid,
{recreateForm:true,closeAfterEdit:true,
closeOnEscape:true,reloadAfterSubmit:false});
}
simple way
ondblClickRow : function(rowid) {
$("#edit_mygridId").trigger("click");
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With