1. #1
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    22
    Vote Rating
    1
    Answers
    1
    nirvdrum is on a distinguished road

      0  

    Default Unanswered: Save active tab in storage provider?

    Unanswered: Save active tab in storage provider?


    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

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,684
    Vote Rating
    435
    Answers
    3111
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Have you used the stateEvents?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    22
    Vote Rating
    1
    Answers
    1
    nirvdrum is on a distinguished road

      0  

    Default


    Nope. I guess I have some more reading to do. Thanks for the pointer.

  4. #4
    Sencha User
    Join Date
    Sep 2011
    Posts
    35
    Vote Rating
    4
    Answers
    2
    ettavolt is on a distinguished road

      0  

    Default


    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/#!...state.Stateful).