Skip to content

Change edit properties without modifying the source code

How to make the edit form stays open after it's submitted? 

The easiest way is to change closeAfterEdit to true in file cls_datagrid.php. However if you don't have access to the source code, use the following code snippet:

    var grid=$("#orders");      
    var orgEditGridRow = grid.jqGrid.editGridRow; // save original function
    $.jgrid.extend ({editGridRow : function(rowid, p){
                closeAfterEdit: false
            }); (this,rowid, p);

Make sure to change "orders" to your own table name used for grid.

Feedback and Knowledge Base