Bulk-edit – deselect rows

QuestionsBulk-edit – deselect rows
Peter Broekman asked 3 weeks 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 3 weeks 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
PHP Grid Framework
 
Peter Broekman answered 3 weeks ago

I do an extra function

$g->set_events($e);

so maybe it’s that. Thanks anyway

 

Your Answer

17 + 1 =

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 / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!