View Full Version : Save activeItem in Accordion Layout

11 Nov 2009, 11:31 PM

is there a simple way to save the last opened panel in an accordion layout into a cookie ? Like setting some "state"-config option ?

I stepped through the API and I think I am able to build the feature using "listener" functions with manual saving and loading functions but maybe there is an easier way ?

Best regards,

12 Nov 2009, 12:57 PM
Already found the answer here: http://blog.extjs.eu/know-how/how-to-keep-expaded-state-of-accordion-items/

James Goddard
24 Nov 2009, 6:46 AM
That method doesn't work if you have activeOnTop set to true. The only way I have been able to make this work is to use a timer and expand the correct item afterwards.