PDA

View Full Version : Extjs State Management



rajmalhotraml
10 Jan 2011, 1:52 AM
Hi All,

I am using ExtJS in JSP Project. In one of my JSP pages, I used view port. I have a tree panel in the west region and Panel in center region. I dont have any other regions.

When I click on the tree node, I am generating dynamic grids and binding them to the Panel in the center region. Everything working fine till here.

From the grid, there is one actioncolumn in which user will navigate to another page in my application. When the user came back to this page, all the dynamic grids were lost and tree node is collapsing to root node.

I search in the forums and read about state management and found that we can preserve the tree node by using state management provided by Ext using cookies. I am able to do this.
However I am not sure how can I preserve the grids (which are bind to the center region). I may have multiple grids (around 4-8) depending on the clicked node. How can I preserve these grids?

Is there any way we can preserve the entire Panel state (including grids) on page refresh?

Thank you,

Raj...

rajmalhotraml
10 Jan 2011, 6:53 PM
Any help please? I am struck with this..