Good Morning,
i´m trying to use my owne “yes/no” form for deleting records, as i need to ask 2 times before deleting a row.
after long time trying to find some information about how to do this, i take a look to your sample custom_events to try to find some light.
for that, i changed in the sample an unmarked the client side events on_delete option and ondblclickrow .
and comment all server side events.
ondblclickrow is working fine, the alert “‘Simulating, double click on id” appears,
but for the on_delete option does not work. when it has to do the same job: alert(‘Simulando evento de borrado’), it just delete the record and thats all.
can you help me?
the code:
thank you in advance.
Hello,
I understand your query and I’ll be updating you back after some research on it.
You can try following setting for set_options function. You can replace “confirm” JS function with your own implementation.
$opt["delete_options"]["beforeSubmit"] = "function(){ if (confirm('Are you sure you want to delete?')) {return [true,''];} }";