1. #1
    Sencha Premium Member robboerman's Avatar
    Join Date
    Nov 2007
    Location
    Pijnacker, the Netherlands
    Posts
    75
    Vote Rating
    7
    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

    2Gears.com
    Delft, the Netherlands
    Blog: 2gears.com/blog

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,347
    Answers
    3542
    Vote Rating
    846
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You should be able to use the addPropertyToState method that is on every component
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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.

Thread Participants: 1