Hi Abu,
Do we have a method available for an ajax call in which we can check conditions (like other table values) before opening the edit form and show a message box in case it is not possible or allowed to edit the current record? E.g. to prevent changing a record that is being edited by another user.
Br. Richard
Hello,
I am emailing you closest sample.
Let me know if it fits your need.
Regards,
Dear Abu,
Can you please email the sample for the problem detailed in this post.
Regards
Mukti
This function is not exactly available, however there are alternates.
First you can use afterShowForm event to invoke ajax call … and show error message alert.
$grid["add_options"]["afterShowForm"] = 'function(formid) { }';
$g->set_options($grid);
Same can be used for edit_options.
Second, you need to put same check in on_update event (as server side validation)
You can refer demos/editing/server-validation.php