Hi.
I need to reload the parent grid after I erase a row in a child grid.
I already reload the parent grid after I insert a row in a child with this line of code:
$opt["add_options"]["afterSubmit"] = "function(){jQuery('#list1').trigger('reloadGrid',[{jqgrid_page:1}]); return true;}";
I place that code before the set_options($opt) on the detail grid, but looks like it doesn't work for deletion.
Just replace add_options with delete_options.
$opt["delete_options"]["afterSubmit"] = "function(){jQuery('#list1').trigger('reloadGrid',[{jqgrid_page:1}]); return true;}";
It works now, it reloads the parent grid after deletion but the dialog that ask for delete confirmation doesn't hide.
Thanks.
Change return true; with return [true, ''];
$opt["delete_options"]["afterSubmit"] = "function(){jQuery('#list1').trigger('reloadGrid',[{jqgrid_page:1}]); return [true, ''];}";
Hello, i'm using master-sub grid, i want to reload the entire parent grid after the delete event on a subgrid row.
Currently after the delete event the subgrid is reloaded but not the parent-master grid.
I tried to add this line in the subgrid code without success:
$opt["delete_options"]["afterSubmit"] = "function(){jQuery('#list1').trigger('reloadGrid',[{jqgrid_page:1}]); return [true, ''];}";
The id of the master grid is #list1.
Can you help me? Thanks