extjs 下拉框显示问题?
listeners:{
load: function(sto, records){
sto.each(function(record){
if(record.data.value !=""){
var arr_value=record.data.value.split(","); if(arr_value.length>1){
record.data.editor= new Ext.grid.GridEditor(new Ext.form.ComboBox({
store: new Ext.data.ArrayStore({
fields: ['name'],
data: [arr_value] }),
typeAhead: true,
displayField: 'name',
selectOnFocus: true,
triggerAction: 'all',
mode: 'local'
}));
}
}
});
}
}
record.data.value的值是aaa,bb;但生成的下拉框选项中只有aaa,如果fields: ['code','name']那么下拉选框中只有bb,求解~~~