Results 1 to 4 of 4

Thread: Save active tab in storage provider?

  1. #1
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    24
    Answers
    1
    Vote Rating
    2
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,416
    Answers
    3899
    Vote Rating
    1269
      0  

    Default

    Have you used the stateEvents?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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 in print!

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

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    24
    Answers
    1
    Vote Rating
    2
      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
    574
    Answers
    59
    Vote Rating
    74
      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).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •