EditorGridPanel 中使用combo

 

getLocationCombo(){

    var locationCombo = new Ext.form.ComboBox({

        store: getDictionaryDs('NORMAL', 'LOCATION'),

        valueField: 'label',

        displayField: 'label',

        editable: false,

        typeAhead: true,

lazyRender:true, 

        mode: 'remote',

        forceSelection: true,

        triggerAction: 'all',

        selectOnFocus: true,

        allowBlank: false,

        blankText: "请选择核查地市",

        anchor: '95%'

    });

    return locationCombo;

}

 

 

 

{header: '核查地市', align:'center', dataIndex: 'alocation', 

renderer : function(data, cell, record, rowIndex, columnIndex, store) {

var idx = cityCombo.store.find("lable", data);

var rec = cityCombo.store.getAt(idx);

return rec == null ? data : rec.get("label");

}

,editor: cityCombo},

你可能感兴趣的:(gridPanel)