1. #1
    Ext JS Premium Member robboerman's Avatar
    Join Date
    Nov 2007
    Location
    Pijnacker, the Netherlands
    Posts
    53
    Vote Rating
    3
    robboerman is on a distinguished road

      0  

    Default Unanswered: Adding custom properties to Grid state

    Unanswered: Adding custom properties to Grid state


    Hi there,

    My application had a grid that saves it's state (sorting, columns) automatically. By default the grid saves and recovers the properties 'collapsed','columns' and 'sort'. I am trying to add a fourth property but have no idea how to do that. For instance, my CustomGrid panel class defines a 'viewmode' property. How do I add that property to the state and have it recovered when the statemanager loads the state?
    Rob Boerman

    Blog: robboerman.com/blog

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,128
    Vote Rating
    453
    Answers
    3161
    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 mitchellsimoens has much to be proud of

      0  

    Default


    You should be able to use the addPropertyToState method that is on every component
    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.