We would like to trap ‘Cancel’ edit to have the grid reloaded.
We were expecting to have grid_reload event fired but apparently it is not the case.
Best Regards,
1 Answers
Hello,
You can try using:
$opt["add_options"]["onClose"] = "function(){ jQuery('#list1').trigger('reloadGrid',[{current:true}]); }";
where list1 is your grid id and later you need to pass $opt in $g->set_options() function,
Same applies for $opt[“edit_options”][“onClose”] and it’ll do same with edit dialog.
Your Answer