1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    3
    Vote Rating
    0
    PriyeshShah is on a distinguished road

      0  

    Default Unanswered: How to display simple JSON array in combo box

    Unanswered: How to display simple JSON array in combo box


    My JSON output is:

    {"result":{"resultList":[{"A","B"......"Z"}]}

    How to display this in Combo box

  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

      1  

    Default


    Hi,
    you can use following code for combobox

    Code:
    {
                    xtype: 'combo'
                    , fieldLabel: 'Choose City'
                    , displayField: 'x'
                    , valueField: 'x'
                    , trigerAction:'all'
                    , mode: 'local'
                    , store: new Ext.data.JsonStore({
                        data: {
                            result: {
                                resultList: [
                                    {
                                        x: 'A',y:'B',z:'C'
                                    }
                                ]
                            }
                            }
                        , root: 'result.resultList'
                        , fields:['x']
                    })
                }
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    3
    Vote Rating
    0
    PriyeshShah is on a distinguished road

      0  

    Default


    thanks for the example.My problem resolved

Thread Participants: 1

Tags for this Thread

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