I change the value of the id column in my grid by listening to change of a textfield:
oTextfieldName.on( 'change', function( oField, strValue ) {
oStore.getAt( 0 ).setId( strValue );
}
However, if setId() is called, the selection of that row 0 is removed. My app is dependent on that selected row to stay selected.
How can I keep the row selected, while still editing/changing that id column?
Edit:
When using store.sync() it gets back selected.
However, my store gets messed up throwing:
Uncaught TypeError: Object function () {
this.destroy = Ext.emptyFn;
} has no method 'indexOf' ext-dev.js:1253