日期:2014-05-16  浏览次数:20461 次

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,求解~~~
extjs?下拉框 Ext?JS