1. #1
    Ext User
    Join Date
    Apr 2010
    Posts
    1
    Vote Rating
    0
    hepx is on a distinguished road

      0  

    Default in grid how to get combobox's filedvalue

    in grid how to get combobox's filedvalue


    this is code:
    var comV = [[1, 'aaa'], [2, 'bbb'],
    var combox = new Ext.form.ComboBox({
    store : new Ext.data.ArrayStore({
    fields : ['id', 'text'],
    data : comV
    }),
    forceSelection : true,
    valueField : 'id',
    typeAhead : true,
    editable : false,
    disabled:true,
    displayField : 'text',
    triggerAction : 'all',
    mode : 'local',
    value:null,
    selectOnFocus : true
    });
    var cm = new Ext.grid.ColumnModel({
    ......
    , {
    header : '<div align=center>combox</div>',
    dataIndex : 'deviation',
    renderer : Ext.util.Format.comboRenderer(combox)

    }]
    });
    var grid = new Ext.grid.EditorGridPanel({
    width : 940,
    height : 475,
    frame : true,
    enableColumnHide : false,
    store : store,
    stripeRows : true,
    viewConfig : {
    enableRowBody : true
    },
    sm : sm,
    cm : cm
    });
    I want to grid the data were passed to the back. combobox column default value is taken valueField, but now I would like to take displayField, do not know how to set?

  2. #2
    Ext User
    Join Date
    Jun 2010
    Posts
    23
    Vote Rating
    0
    rogerio.carrasqueira is on a distinguished road

      0  

    Default


    Do you have fixed this issue? If yes, can you post your solution? I'm having a similar problem like yours and i'm finding for a solution. Thanks so much.

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