["add_options"]["afterComplete"] not firing

Questions["add_options"]["afterComplete"] not firing
David asked 10 years ago

Hi Abu,

Is this normal that the option ["add_options"]["afterComplete"] seems no longer working on the latest build ?

trying add this to demo folder / custom-events.php to start with clean grid.

$opt["add_options"]["afterComplete"] = "function (response, postdata) {
console.log('test');
}";

nothing is logged to console.

but if you try:

$opt["edit_options"]["afterComplete"] = "function (response, postdata, formid) {
console.log('test');
}";

it work as expected

Thanks for your help,

David

3 Answers
Abu Ghufran answered 10 years ago

You can also try using:

$opt["add_options"]["afterSubmit"]

and

$opt["add_options"]["afterShowForm"]

David answered 10 years ago

Hi Abu,

thanks for the answer.

Just for information, what is the difference between aftersubmit and aftercomplete ?

is afterSubmit fires after all actions and events are completed or just after submit button is clicked ?

Rergards

Abu Ghufran answered 10 years ago

Hello,

I haven't used afterComplete before.
May be you will get better answer from jqgrid lib forum (that is js opensource code)

Your Answer

8 + 7 =

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?