Letractively / jxlib

Automatically exported from code.google.com/p/jxlib
0 stars 0 forks source link

Jx.Store #167

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

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

Attachments:

GoogleCodeExporter commented 9 years ago
this is a duplicate of issue 164. Marking as such and merging with issue 164

Original comment by jbomgard@gmail.com on 26 Mar 2010 at 7:59