id
我通过收听change
文本字段来更改网格中列的值:
oTextfieldName.on( 'change', function( oField, strValue ) {
oStore.getAt( 0 ).setId( strValue );
}
但是,如果setId()
被调用,0
则删除该行的选择。我的应用程序依赖于选定的行来保持选中状态。
如何保持选中行,同时仍编辑/更改该 id 列?
编辑:
使用时store.sync()
,它会重新被选中。
但是,我的商店搞砸了:
Uncaught TypeError: Object function () {
this.destroy = Ext.emptyFn;
} has no method 'indexOf' ext-dev.js:1253