Dear Abu. I have the version before 2.6. A program has four grids. All master-detail of each other. How should I reload the grids, when I add a record in the fourth grid, which updates the totals of the third grid and this in turn modifies the totals of the second and this also modifies the totals of the first. The idea is that when loading a record in the last grid, the previous ones are updated and reloaded. Thanks for your time.
On your fourth grid, you can put this code:
$opt[“add_options”][“afterSubmit”] = “function() {
$(‘#list1’).trigger(‘reloadGrid’, [{current:true}]);
$(‘#list2’).trigger(‘reloadGrid’, [{current:true}]);
$(‘#list3’).trigger(‘reloadGrid’, [{current:true}]);
return [true,”]; }”;
$g->set_options($opt);
When submit add dialog, it will refresh all parents keeping selection intact.