{
text: "附件类型", width: 150, dataIndex: 'uploadType', sortable: true, align: 'left',
editor: {
allowBlank: false,
xtype: 'constantsDictionaryCombo',
emptyText : '请选择附件类型',
data : CUSTOMER_ATTACH_FILE_ARRAY
},
renderer:function(value,p,r){
var store = this.columnManager.getHeaderByDataIndex('uploadType').getEditor().store;
var record = store.getById(value); //从字典中获取记录
if(record == null) {
return value;
}
return record.data.text;
}
}