peter.pisljar@gmail.com
18 Apr 2012, 2:50 AM
hello.
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) :
http://www.sencha.com/forum/showthread.php?52982-Using-getState-applyState-for-autoTabs
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.
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) :
http://www.sencha.com/forum/showthread.php?52982-Using-getState-applyState-for-autoTabs
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.