3 Answers
If you want to reload all grid cells after the editing of a cell, then you need to add:
// after submit event
$opt["afterSaveCell"] = "function(){ setTimeout(()=>{ $('#list1').trigger('reloadGrid', [{current:false}]);},100) }";
where $opt is the variable passed to set_option() function, and list1 is grid id.
Even if after i add the submit event it didn\’t work $opt[\”cellEdit\”] = true; $opt[\”afterSaveCell\”] = \”function(){ setTimeout(()=>{ $(\’#list_details1\’).trigger(\’reloadGrid\’, [{current:false}]);},100) }\”; $grid->set_options($opt);
Please share complete grid code to regenerate this issue.
If you can record an screencast, it will help understanding the case.
Your Answer