Keep row highlighted after closing out of edit modal

QuestionsKeep row highlighted after closing out of edit modal
Melissa asked 3 years ago

Hi. Currently whenever we highlight a row, click on the grid edit icon, make some changes, and click submit, the highlighting is removed from the selected row. Is there any way to keep it highlighted? Thanks.

https://imgur.com/a/ILpWve8

2 Answers
Abu Ghufran Staff answered 3 years ago

One option is to disable server reloading. It will show change on grid (via client side working) and keep row selected.

$opt[“add_options”][“reloadAfterSubmit”] = false;
$opt[“edit_options”][“reloadAfterSubmit”] = false;
$g->set_options($opt);

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Melissa answered 3 years ago

That’s it. Thanks!!

Your Answer

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