读书人

EditorGridPanel 中运用combo

发布时间: 2012-06-26 10:04:13 作者: rapoo

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},

读书人网 >Web前端

热点推荐