View Full Version : applystate afterrender

18 Apr 2012, 2:50 AM

i am trying to make my grid stateful.
the problem is, that i dont have columns defined in my gridview, but i add
them later on dynamicly.

so i would need to call applystate afterrender ....

similar problem is described here (however for extjs 2) :

i (http://www.sencha.com/forum/showthread.php?52982-Using-getState-applyState-for-autoTabs) tried this solution, but it doesnt work in new ext (4 RC3):
- if i set property stateful: false, and then on afterrender i set this.stateful = true ...
it never actualy becomes stateful (nothing is stored in my cookies).
- if i set property stateful: true, and i just call this.initState() on afterrender,
function gets called, but my grid did not update its state.

thank you very much for your help.

19 Apr 2012, 9:45 AM
See if this thread will provide any help to address these limitations: