我在其中一个列中有一个带有组合框的网格,该网格在首次加载时有效,但是当我编辑单元格的存储值以及执行此操作时
onComboOptionsChange: function (combo, newValue, oldValue, eOpts) {
record.set("Unit", 1);
record.commit();
}
网格不再显示组合框。
{
header: 'Options',
dataIndex: 'StoreName',
flex: 1,
xtype: 'widgetcolumn',
widget:
{
xtype: 'combobox',
displayField: 'Description',
valueField: 'LineID',
listeners: {
change: 'onComboOptionsChange'
}
},
listeners:{
afterrender:'afterWidgetRender'
},
onWidgetAttach: function (column, widget, record) {
var itemStore = Ext.create('Ext.data.Store', {
fields: [
{ name: 'LineID', type: 'int' },
{ name: 'ServiceCode', type: 'string' },
],
data: record.data.Items
});
widget.setStore(itemStore);
},