PDA

View Full Version : Save active tab in storage provider?



nirvdrum
26 Oct 2012, 5:03 PM
Hi,

I set my tab panel to be stateful and gave it a stateId. It doesn't seem to do much of anything though. I figured it would save the active tab state. Is this something I need to manage on my own or should the framework handle that? Thanks in advance -- I'm just looking for pointers before I waste time one way or the other doing the wrong thing.

Thanks,
Kevin

mitchellsimoens
29 Oct 2012, 6:14 AM
Have you used the stateEvents?

nirvdrum
30 Oct 2012, 3:05 PM
Nope. I guess I have some more reading to do. Thanks for the pointer.

ettavolt
2 Nov 2012, 6:58 AM
TabPanel doesn't save activeItem - you need to manually do this either in beforestatesave and staterestore or overriding saveState and applyState methods (http://docs.sencha.com/ext-js/4-1/#!/api/Ext.state.Stateful).