How to trap 'Cancel' event

QuestionsHow to trap 'Cancel' event
Jean-Luc Marmier asked 3 weeks ago

We would like to trap ‘Cancel’ edit to have the grid reloaded.

We were expecting to have grid_reload event fired but apparently it is not the case.

Best Regards,

1 Answers
Abu Ghufran Staff answered 2 weeks ago


You can try using:

$opt["add_options"]["onClose"] = "function(){

where list1 is your grid id and later you need to pass $opt in $g->set_options() function,

Abu Ghufran - Dev Team
Grid 4 PHP Framework
Abu Ghufran Staff replied 2 weeks ago

Same applies for $opt[“edit_options”][“onClose”] and it’ll do same with edit dialog.

Your Answer

9 + 4 =

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?