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

      0  

    Default Combobox in grid

    Combobox in grid


    I am unable to get a combobox in grid panel. I have to get a combobox in one of the column of grid panel. I have set data index for this from store and xtype:'combo' in editor. Please let me know any solutions on this.

    Regards,
    Pankaj

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    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,

    Try to use following code:-

    Code:
    Ext.onReady(function () {
        
        var grid = new Ext.grid.EditorGridPanel({
            title: 'My Grid'
            , width: 600
            , height: 200
            , renderTo: Ext.getBody()
            , store: new Ext.data.ArrayStore({
                data: [
                        ['A', 'abc@gmail.com', 'June 14,2012 11:00 AM']
                        , ['B', 'Abc@gmail.com', 'June 15,2012 11:00 AM']
                        , ['C', 'xyz@gmail.com', 'June 10,2012 11:00 AM']
                    ]
                    , fields: ['name', 'email', 'login_time']
            })
            , colModel: new Ext.grid.ColumnModel([
                   { header: "Name", width: 150, height: 16, sortable: true, dataIndex: 'name', editor: { xtype:'combo',       displayField:'value', valueField:'id',triggerAction:'all',mode:'local',store:['A','B','C']} },
                   { header: "E-Mail", width: 200, height: 16, sortable: true, dataIndex: 'email' },
                   { header: "Last Login", width: 150, height: 16, sortable: true, dataIndex: 'login_time' }
                ])
        })
    })
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

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