1. #1
    Ext User
    Join Date
    Jan 2009
    Posts
    1
    Vote Rating
    0
    deepakmehta22 is on a distinguished road

      0  

    Default Default Value in ComboBox

    Default Value in ComboBox


    Hi,
    This is regarding the default value selection in Combo Box.
    Problem : I have created new Combo Box and given the "Empty text" some default value which should be there while initial loading of Combo.But when i change the value of Combo to something else i lost my Default Value.For eg when combo loads the default value is 'Pick a Region ...' but when i changed to something else the default value is lost..

    So how it can be retained.Any Idea ???

    Here are my Setting::
    new Ext.form.ComboBox({
    fieldLabel:'Office Region',
    name:'userRegion',
    id:'settingsRegCombo',
    store: getRegDS(),
    valueField:'id',
    displayField:'text',
    typeAhead: true,
    mode: 'local',
    triggerAction: 'all',
    emptyText:'Pick a Region ...',
    selectOnFocus:true,
    resizable:false,
    forceSelection:true,
    allowBlank:true,
    blankText:"Pick a Region"
    });

    Thanks a lot for the help...

  2. #2
    Ext User
    Join Date
    Jul 2009
    Posts
    2
    Vote Rating
    0
    krishnam is on a distinguished road

      0  

    Default


    Code:
    var combo = new Ext.form.ComboBox({
            store: ['10', '20', '30'],
            triggerAction: 'all',
            selectOnFocus:false,
            forceSelection: true,
            value: 20,       ---------> Default Value will be 20
            editable: false
        });

  3. #3
    Ext User
    Join Date
    Aug 2009
    Location
    Semi-retired in Mexico
    Posts
    47
    Vote Rating
    0
    frederickd is on a distinguished road

      0  

    Default


    Awesome tip! I also learned that one can define the local store variables in-line. Too kewl! This helped me tremendously. I only added a hiddenName to send data to the database and have it automagically load the comboBox when the record is being edited.

    Thank you!

  4. #4
    Sencha User
    Join Date
    Jan 2009
    Posts
    61
    Vote Rating
    1
    bartonjd is on a distinguished road

      0  

    Default


    How is this done?

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