1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    4
    Vote Rating
    0
    greg_prop is on a distinguished road

      0  

    Default Unanswered: selecting first value as default value or selected value for xtype:combo

    Unanswered: selecting first value as default value or selected value for xtype:combo


    hi!
    i am using the code below to fetch data using JsonStore, although data is being fetched from database in to drop-down but how can i select first value as selected value. I am using drop-down in toolbar not in form and data is being fetched from database not a static one.

    var prices = new Ext.data.JsonStore({
    autoDestroy: true,
    url: 'transport.php?controller=templates&action=getPrice&propid=' + recId,
    root: 'prices',
    id: 'propprice',
    fields: ['propertyID','price'],
    autoload: true
    });

    and following for drop-down in toolbar.

    {
    xtype: 'combo',
    fieldLabel: 'Property price',
    id: 'prop_price',
    //emptyText: 'Prices available',
    triggerAction: 'all',
    store: prices,
    valueField: 'price',
    displayField: 'price',
    width:120
    }

    screen1.PNG.


    can anybody help?

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Answers
    124
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi greg_prop
    Please have a look at the link given below
    http://stackoverflow.com/questions/3...combobox-extjs
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Thread Participants: 1

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