PDA

View Full Version : Saving grid state



Santra
29 Sep 2015, 12:52 AM
Hi
I am using Extjs 4.1.I have a grid with grouping feature. I am collapsing and expanding the groups using a button that is visible only when grouping is enabled.

When the grid is grouped a collapse all button appears.On click of it all the records are collapsed.When I move to the next page or previous page using the buttons in the paging tool bar the collapsed state of the grid should be maintained.

I mean the groups should be collapsed and the button should display Expand All in the next and previous pages also.The problem is for the DOB and Id columns it is working as expected but for Name column the grid state is not getting maintained. I guess maybe it is because of the hyperlink.
Please help me out with this.Thanks in advance

This is the fiddle link to replicate the issue:
http://jsfiddle.net/Harika_K/TE4ah/1081/

bjdurham85
7 Oct 2015, 6:37 AM
Hi Santra,

Have you tried setting the Stateful,StateId configs and added the cookieProvider? I've included another thread that seems relevant to what you're requesting.

http://docs.sencha.com/extjs/4.2.3/#!/api/Ext.grid.Panel-cfg-stateful

https://www.sencha.com/forum/showthread.php?71655-ExtJS-grid-save-cookies-for-show-hide-columns


Regards,
Bryan

Santra
30 Oct 2015, 1:12 AM
The issue is not yet fixed after using cookie provider also.
Just wanted to know if anyone came across the same issue or has some solution regarding this.

Responses highly appreciated.
Thanks in Advance.

Regards,
Santra

bjdurham85
11 Nov 2015, 12:11 PM
Have you updated your example with the cookie provider?