PDA

View Full Version : Apply State manually



nicholasnet
8 Mar 2011, 11:15 AM
I ran into a situation where I have to apply different state for same widgets. On afterrender event I tried to do this.


afterrender: (grd)
{
grd.applyState(someState);
grd.getView().refresh(true);
}

This solution is working partially it applies the state but incorrectly during first time. When you try to resize the column then it adjust everything automatically. Is this bug or am I missing anything.

ftrack
12 Sep 2011, 3:56 AM
Edit: Sorry, didn't notice this concerned 3.x. I use 4.x and have the same issue.

I have the same problem, are you supposed to be able to applystate after a component is created?
In my experience this doesn't work with Ext.grid.column.Column, applyColumnState.

hbulens
19 Jan 2016, 8:44 AM
5 years later and this question still pops up as I'm facing this exact problem. Has this been covered in ExtJS 6?