Bulk-edit – deselect rows

QuestionsBulk-edit – deselect rows
Peter Broekman asked 5 years ago

Abu,

After a bulk-edit the rows will still be selected, but you are not allowed to do follow-up edits (bulk or normal ones). as it says please select a record. This looks a bit odd as the records are still selected. Is there a way to have theses row deselected automatically after a bulk-edit liek is the case with a normal edit?

2 Answers
Abu Ghufran Staff answered 5 years ago

I checked online demo and it allow followed edits on same records, so unable to generate this issue:

https://phpgrid.org/demo/demos/editing/bulk-edit.php

However, if you want to remove selection, you can set:

$grid[“edit_options”][“beforeSubmit”] = “function(){ $(‘#list1’).resetSelection(); return [true,”]; }”;

$g->set_options($grid);

(where list1 is id passed in render(‘list1’) )

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Peter Broekman answered 5 years ago

I do an extra function

$g->set_events($e);

so maybe it’s that. Thanks anyway

 

Your Answer

13 + 14 =

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?