Change edit properties without modifying the source code
How to make the edit form stays open after it's submitted?
Solution:
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:<script>
$(document).ready(function(){
var grid=$("#orders");
var orgEditGridRow =
grid.jqGrid.editGridRow; // save original
function
$.jgrid.extend ({editGridRow :
function(rowid, p){
$.extend(p,
{
closeAfterEdit: false
});
orgEditGridRow.call
(this,rowid, p);
}});
});
</script>
Make sure to change "orders" to your own table name used for grid.