Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Nov 2010
    Posts
    14
    Vote Rating
    -1
    mniland is an unknown quantity at this point

      -1  

    Default ComboBox doesn't display a value if store loads after record

    ComboBox doesn't display a value if store loads after record


    In Beta 3, if the store associated with a ComboBox finishes loading after the record whose value was loaded into the store, the value is not displayed until the user clicks the trigger on the ComboBox.

    Our solution "treats the symptom, not the disease", modifying onLoad in Ext.form.field.ComboBox:

    Old code:
    Code:
        onLoad: function() {
            var me = this,
                value = me.value;
    
            me.syncSelection();
            if (me.picker && !me.picker.getSelectionModel().hasSelection()) {
                me.doAutoSelect();
            }
        },
    New code:
    Code:
        onLoad: function() {
            var me = this,
                value = me.value;
    
            if (me.store.getCount() > 0) {
                me.setValue(me.value);
            }
    
            me.syncSelection();
            if (me.picker && !me.picker.getSelectionModel().hasSelection()) {
                me.doAutoSelect();
            }
        },

  2. #2
    Ext JS Premium Member
    Join Date
    Nov 2010
    Posts
    14
    Vote Rating
    -1
    mniland is an unknown quantity at this point

      0  

    Default


    Quote Originally Posted by mniland View Post
    In Beta 3, if the store associated with a ComboBox finishes loading after the record whose value was loaded into the store, the value is not displayed until the user clicks the trigger on the ComboBox.
    To clarify - "the record whose value was loaded into the ComboBox".

  3. #3
    Ext JS Premium Member Stanback's Avatar
    Join Date
    Jun 2010
    Location
    Boulder, Colorado
    Posts
    29
    Vote Rating
    0
    Stanback is on a distinguished road

      0  

    Default


    I'm experiencing the same problem.

    This doesn't seem to show up as a problem in any of the examples because they are using local stores which already have their data loaded by the time the combo box renders.

  4. #4
    Touch Premium Member
    Join Date
    Feb 2011
    Posts
    15
    Vote Rating
    1
    hulstein is on a distinguished road

      0  

    Default


    Unfortunately it's not fixed in the final release, but your fix above still works, thanks :-)

Similar Threads

  1. GridPanel doesn't display all fields of an added record
    By bareflix in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 22 Jul 2010, 6:03 PM
  2. Foam loads before Combo box Store loads
    By poonam in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 5 Apr 2009, 6:09 PM
  3. Using Dataview to Display 1 Record from Store of many
    By paulkissick in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 26 Feb 2009, 12:17 PM
  4. combo loads data but doesn't display it
    By dieter in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 16 Jun 2008, 6:05 AM
  5. Store loads json data but doesn't parse it
    By ArtemB in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 8 Oct 2007, 12:37 PM

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..." hd porno faketaxi