I followed the code in the bulk-edit example. It seems to me that if you use that, then it does what is in the update_data function and does not do its normal bulk edit functionality.
I would like it to first do the normal bulk edit functionality and then do some extra code, is there a setting for that?
If you use bulk-edit default option that is set in set_actions: http://prntscr.com/gzqo21
It will show this dialog: http://prntscr.com/gzqnse and there is no need for on_update function callback.
Full code/demo from demos/editing/bulk-edit.php
If you need to perform some custom operation after that, you can use on_after_update callback handler.
e.g. $e["on_after_update"] = array("after_update", null, true);
Refer docs for more: http://www.phpgrid.org/docs/#Grid_Events
How useful was this discussion?
Click on a star to rate it!
Average rating / 5. Vote count:
We are sorry that this post was not useful for you!
Let us improve this post!
Thanks for your feedback!