1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    5
    Vote Rating
    0
    Shura1245 is on a distinguished road

      0  

    Default 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?

  2. #2
    Sencha User
    Join Date
    Jul 2011
    Posts
    5
    Vote Rating
    0
    Shura1245 is on a distinguished road

      0  

    Default Any Idea?

    Any Idea?


    Any Idea?

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    5
    Vote Rating
    0
    Shura1245 is on a distinguished road

      0  

    Default Any one ?

    Any one ?


    Any one ?

  4. #4
    Ext JS Premium Member
    Join Date
    Jun 2007
    Posts
    104
    Answers
    1
    Vote Rating
    5
    miroperez is on a distinguished road

      1  

    Default


    I'm not sure of your exact need but you have to have these in your combobox config:

    Code:
    {
      stateId: 'foo',
      stateEvents: ['change'], // and whatever else you need
      getState: function() {
                  return {value: this.getValue()};
       },
       applyState: function(state) {
                 this.setValue(state.value);
       }  
    }
    Hope this helps,
    Miro

  5. #5
    Ext JS Premium Member devtig's Avatar
    Join Date
    Jan 2010
    Location
    Rotterdam, The Netherlands
    Posts
    389
    Vote Rating
    13
    devtig will become famous soon enough

      1  

    Default


    Don't forget to add this for Ext JS 4.1.0 if you want your field to be stateful:
    Code:
    stateful: true
    Ext JS 4.0.7 didn't need it to be stateful if other state properties were set.

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."