1. Setup a grid with 5 rows or more
2. Delete a row, all the row after this deleted row, disapear.
store.deleteRecord( index );
store.getStrategy('save').save();
grid.render();
see shot
3.
So I fixed these lines, and it works, I suspect the null value scrapt the
data array.
deleteRecord: function(index) {
if (!$defined(index)) {
index = this.index;
}
var record = this.data[index];
record.state = Jx.Record.DELETE;
// Set to Null or slice it out and compact the array???
----> //this.data[index] = null;
----> this.data.splice(index,1);
if (!$defined(this.deleted)) {
this.deleted = [];
}
this.deleted.push(record);
this.fireEvent('storeRecordDeleted', [record, this]);
},
Original issue reported on code.google.com by hugues.gauthier@gmail.com on 26 Mar 2010 at 7:43
Original issue reported on code.google.com by
hugues.gauthier@gmail.com
on 26 Mar 2010 at 7:43Attachments: