1
的编辑栏所以我有一个grid
它看起来像这样提交电网的Ext JS
itemId: 'someGrid',
xtype: 'grid',
title: 'Some Grid',
store: 'SomeStore',
selType: 'cellmodel',
plugins: [
Ext.create('Ext.grid.plugin.CellEditing', {
clicksToEdit: 2
})
],
columns: [
{ text: 'column1', dataIndex: 'dataIndex1', flex: 2.7 },
{ xtype: 'checkcolumn', text: column2, dataIndex: 'dataIndex2', flex: 2.7 },
{ xtype: 'checkcolumn', text: column3, dataIndex: 'dataIndex3', flex: 3 },
{
text: column4, dataIndex: 'dataIndex4', flex: 3.85,
editor: {
xtype: 'combobox',
itemId: 'someCOmbo',
store: 'SomeStoreOfCombo',
displayField: 'DataName',
valueField: 'DataId',
allowBlank: false,
editable: false,
}
},
{
text: column5, dataIndex: 'dataIndex5', flex: 3,
editor: {
xtype: 'textfield',
allowBlank: false,
}
},
{
text: column6, dataIndex: 'dataIndex6', flex: 3.1,
editor: {
xtype: 'textfield',
allowBlank: false,
}
},
{ text: column7, dataIndex: 'dataIndex7', flex: 1.7 },
{ dataIndex: 'Id', hidden: true }
],
两个checkcolumns
和column4
5和6是可编辑的。我有网格下的按钮来提交更改。那么,如何才能将所有对网格所做的更改都提交给我?
?你在这个问题上还需要帮助吗?你只是想知道如何获得标记为已更改的记录吗? – Reimius