Bulk Edit custom behavior

QuestionsBulk Edit custom behavior
Russ Savage asked 6 years ago

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?

1 Answers
Abu Ghufran answered 6 years ago

Hello,

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

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?