我正在尝试在网格内呈现可编辑的组合。下面是我的代码片段
columns: [
{
text : 'Account Name',
name : 'accountName',
width : 80,
flex : 4,
sortable : true,
dataIndex: 'accountName'
},
{
text : 'Account Number',
name : 'accountNumber',
flex : 2,
sortable : false,
dataIndex: 'accountNumber',
editor : {'combobox',
typeAhead : true,
selectOnTab : true,
lazyRender : true,
triggerAction : 'all',
listClass : 'x-combo-list-small',
queryMode : 'local',
store : emptyStore,
},
displayField : 'acctNumber',
valueField : 'acctNumber',
listeners: {
afterrender: function(comboField, eOpts)
{
// have to add two sub accounts - 1. account number of column 2.account number of column + "1"
// first try with hard coded values
var employeesStore = new Ext.data.ArrayStore({
fields:['acctNumber'],
data:[{acctNumber: '123456'},{acctNumber: '23456'}]
})
comboField.bindStore(employeesStore);
}
}
}
},
但是,当我跑步时,我得到了两个空行的下拉菜单
有人能帮我吗?
谢谢塔拉汉