1. #1
    Sencha User Tim Toady's Avatar
    Join Date
    Feb 2010
    Location
    Pennsylvania
    Posts
    534
    Vote Rating
    70
    Tim Toady is a jewel in the rough Tim Toady is a jewel in the rough Tim Toady is a jewel in the rough Tim Toady is a jewel in the rough

      0  

    Default 4.1 B2 - loadRecord combos contain "undefined" prior to load

    4.1 B2 - loadRecord combos contain "undefined" prior to load


    Would you guys consider it a bug that in 4.1 B2 when loadRecord is done on a form all the combos contain the text "undefined" until the store has finished loading?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,677
    Vote Rating
    749
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    This has been behavior in every Ext JS version. What you would need to do is have a store load listener which would execute setValue on the combo when the store loads.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User Tim Toady's Avatar
    Join Date
    Feb 2010
    Location
    Pennsylvania
    Posts
    534
    Vote Rating
    70
    Tim Toady is a jewel in the rough Tim Toady is a jewel in the rough Tim Toady is a jewel in the rough Tim Toady is a jewel in the rough

      0  

    Default


    It will automatically set the value when the store loads without explicitly creating a listener. My question is regarding the text that is displayed while the ajax call has not yet returned. In 4.07 the combo is blank. In 4.1 B2 the combo shows the text "undefined" prior to it returning.

    ****Edit****
    I believe the function that is setting the value after load is Ext.form.field.ComboBox.onLoad
    Another thing I just noticed is that it won't set it if the value you are trying to set is zero. This case is probably common with ids.
    Code:
                if (me.value) {          
                     me.setValue(me.value);
    ***Edit 2****
    I tried doing an override for Ext.form.field.ComboBox on valueNotFoundText: '' but it didn't seem to change the text from "undefined"

    ***Edit 3****
    Looks like the initial issue was fixed in 4.1b3. I guess I will report the other issue mentioned in my first edit.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar