Does anyone know if it is possible to reload both grids when a row is updated in a subgrid?
My main grid has a calculated column based on data in the subgrid.
1 Answers
If you mean master-detail grid (non-nested), You can bind onload event to subgrid,
$e["js_on_load_complete"] = "do_onload";
$grid->set_events($e);
and in function do_onload(){ … } you can reload both grid using js code.
jQuery('#list1').trigger("reloadGrid",[{jqgrid_page:1}]);
jQuery('#list2').trigger("reloadGrid",[{jqgrid_page:1}]);
Your Answer