How to trap 'Cancel' event

QuestionsHow to trap 'Cancel' event
Jean-Luc Marmier asked 2 years 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 years ago

Hello,

You can try using:

$opt["add_options"]["onClose"] = "function(){
    jQuery('#list1').trigger('reloadGrid',[{current:true}]); 
}";

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 years ago

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

Your Answer

12 + 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?