retain expand/collapse state in phpgrid grouping after reload

Questionsretain expand/collapse state in phpgrid grouping after reload
Adrian Sirbu asked 4 years ago

Hi,

It’s possible? How?

Thanks in advance!

1 Answers
Abu Ghufran Staff answered 4 years ago

Hello,

Apologies for the delay.
Currently it’s not supported.

If you want to do yourself, i can give some hints.

https://stackoverflow.com/questions/8300524/jqgrid-grouping-state-when-filtering/8317759#8317759

In onClickGroup event, you can save which header-id is expanded and save in cookie or browser storage. And in loadComplete you can again toggle that header-id by reading from cookie or storage.

$opt[“onClickGroup”] = “function(hid, collapse) { …. }”;
$opt[“loadComplete”] = “function() { …. }”;
//…
$g->set_options($opt);

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

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