Method for checking conditions before editing

QuestionsMethod for checking conditions before editing
Richard Kooijman asked 7 years ago

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

3 Answers
Abu Ghufran answered 7 years ago


I am emailing you closest sample.
Let me know if it fits your need.


Mukti answered 6 years ago

Dear Abu,
Can you please email the sample for the problem detailed in this post.


Abu Ghufran answered 6 years ago

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) { }';

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

Your Answer

17 + 5 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?