-
20 Oct 2011 11:41 AM #1
Unanswered: Combobox save-restore state
Unanswered: Combobox save-restore state
Hello everybody,
I have problem. I cant save and then restore value for ExtJS 4 Combobox via stateful (data is dynamic and loading from D
.
I see created cookie with correct value but looks like that on combo creation the stateful value is loaded before loading full list from DB....
Can anyone advise?
-
22 Oct 2011 11:15 AM #2
-
25 Oct 2011 10:18 AM #3
-
28 Dec 2011 2:33 PM #4
I'm not sure of your exact need but you have to have these in your combobox config:
Hope this helps,Code:{ stateId: 'foo', stateEvents: ['change'], // and whatever else you need getState: function() { return {value: this.getValue()}; }, applyState: function(state) { this.setValue(state.value); } }
Miro
-
8 May 2012 12:54 AM #5Ext JS Premium Member
- Join Date
- Jan 2010
- Location
- Rotterdam, The Netherlands
- Posts
- 383
- Vote Rating
- 9
Don't forget to add this for Ext JS 4.1.0 if you want your field to be stateful:
Ext JS 4.0.7 didn't need it to be stateful if other state properties were set.Code:stateful: true


Reply With Quote