PDA

View Full Version : Adding custom properties to Grid state



robboerman
8 Jan 2013, 8:31 AM
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?

mitchellsimoens
10 Jan 2013, 10:44 AM
You should be able to use the addPropertyToState method that is on every component