Changeset 13590

Show
Ignore:
Timestamp:
05/06/08 13:48:32 (7 months ago)
Author:
peller
Message:

keep row ids consistent with dojo.data. Refs #6670 !strict

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.1/dojox/grid/_data/model.js

    r13152 r13590  
    639639        }, 
    640640        _storeDatumNew: function(item){ 
    641                 if(this._disableNew) 
     641                if(this._disableNew){ 
    642642                        return; 
     643                } 
    643644                // the store has added some item under us, need to add it to the view. 
    644645                this._insertItem(item, this.data.length); 
     
    657658                } 
    658659                var row = this._createRow(storeItem); 
     660                for(var i in this._rowIdentities){ //increment all the remaining row ids up one 
     661                        var rowIdentity = this._rowIdentities[i]; 
     662                        if(rowIdentity.rowId >= index){ 
     663                                rowIdentity.rowId++; 
     664                        } 
     665                } 
    659666                this._setRowId(storeItem, 0, index); 
    660667                dojox.grid.data.Dynamic.prototype.insert.apply(this, [row, index]);