-
22 May 2012 10:04 AM #1
Where to set a "State Manager Provider" and make it works?
Where to set a "State Manager Provider" and make it works?
Hi,
After a lot of trial I couldn't make the state manager work.
In Application>launch I have:
Then in a Panel I have:Code:var stateProvider=Ext.create('Ext.state.LocalStorageProvider'); //I've tried cookieProvider too. Ext.state.Manager.setProvider(stateProvider);
But nothing happens, the state is always lost.Code:stateful:true, stateId:'abcPanelState', stateEvents:['resize'], width:200
What am I missing?
-
22 May 2012 11:09 AM #2
SOLVED!
I set the provider for the state manager in a controller's init function.
Otherwise the saved settings were always overridden when the application started.
-
3 Apr 2013 11:55 PM #3
I had the same issue, and the suggestion of pablotcarreira was the answer. Thanks :-)


Reply With Quote