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
1 Answers
I tested by placing following lines in subgrid_detail.php and it seems to be working fine.
You can put them in demos and recheck.
$grid["delete_options"]["afterSubmit"] = "function(){jQuery('#list1').trigger('reloadGrid',[{jqgrid_page:1}]); return [true, ''];}";
$g->set_options($grid);
Your Answer