Hi to all,
this code :
$opt["delete_options"]["afterSubmit"] = "function() { return [true,'']; }";
not work with inline delete on the column Actions , why?
Thanks in advance.
The afterSubmit only works with dialog.
You can connect on_delete event handler and perform validation there.
refer demos/editing/servre-validation.php (exist in licensed ver)
Thankyou , but i resolve with this :
if ($this->actions["delete"] !== false && $this->actions["deleteReload"] == false){ $Vbdbd5632ce745fb23276e53b9b5c6e[] = "<a title="Delete this row" href="javascript:void(0);" onclick="jQuery('#$grid_id').delGridRow(''+cl+'',{afterSubmit:function(data,postd){ return [true,''+''];},errorTextFormat:function(r){ return r.responseText;}}); jQuery('#delmod$grid_id').abscenter(); ">Delete</a>";}
else{ $Vbdbd5632ce745fb23276e53b9b5c6e[] = "<a title="Delete this row" href="javascript:void(0);" onclick="jQuery('#$grid_id').delGridRow(''+cl+'',{afterSubmit:function(data,postd){window.location.reload(); return [true,''+''];},errorTextFormat:function(r){ return r.responseText;}}); jQuery('#delmod$grid_id').abscenter(); ">Delete</a>"; }