PDA

View Full Version : How to maintain selected menus



trupti.patil
13 May 2012, 9:24 PM
Hello,

I have menu and sub-menu structure using Ext.Panel and tbar property. When I click on one of the submenu there is one tree panel and clicking on one of the node the related contents gets opened in right side.

When I refresh the page it takes me to home page.

I want it like if I am on submenu page, then after refreshing the page it should display the submenu page.

To get the scenario please refer the attached images.

Can anybody help me in this?

Thank you,
Trupti

scottmartin
14 May 2012, 8:35 AM
You will have to save this info to the client (cookie) and then provide this info on reload.

Regards,
Scott.

trupti.patil
14 May 2012, 8:57 PM
You mean to save whole content in cookie. If so then it will be too much data in cookie.

There is no other way to do that?

Regards,
Trupti

scottmartin
15 May 2012, 9:18 AM
You can pick the local storage method that you want, but the point is that if you want to recall a previous location after leaving the page, you will have to keep track of it yourself. There is an extension that does save info to a table, or you could create your own and load that at startup to get the settings.

Scott.