PDA

View Full Version : stateful: More than 1 comp. with same settings



Choleriker
22 Nov 2007, 4:45 AM
Hallo,

im developing a desktop-application where many grids (with many id's) can contain the same content. I give every grid an own id because Ext.getCmp(). But the stateful helper saves the states by the id's of the component so every grid gets his own settings, which is not i want. Is there any way to give the component a statefulId or something to get the same settings for every grid in one group or may i extend Ext.Component by myself?

Regards, Michael

hendricd
22 Nov 2007, 6:17 AM
[From the Component config options in API Docs]

you can give components unique or the same:

stateId:'mygridstate'