Opened 12 years ago

Closed 12 years ago

#2469 closed defect (wontfix)

Filtering Table onUpdateData, onUpdateDataRange bug old row returns null

Reported by: guest Owned by: Tom Trenka
Priority: high Milestone:
Component: Widgets Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:

Description

onUpdateData, and onUpdateDataRange are returning null for old row.

Need to change:

var old=self.getRow(self.store.getDataByKey(arr[i][self.store.keyField]));

to:

var old=self.getRow(self.store.getDataByKey(arr[i].key)); 

This adjustment works for me.

		dojo.event.connect(this.store, "onUpdateData", function(updatedObject){

			var oldRow = self.getRow(self.store.getDataByKey(updatedObject.key));
			var newRow = self.createRow(updatedObject);
			self.domNode.tBodies[0].replaceChild(newRow, oldRow);
			self.render();
		});


		dojo.event.connect(this.store, "onUpdateDataRange", function(arr){
			for(var i=0; i<arr.length; i++){
				var old=self.getRow(self.store.getDataByKey(arr[i].key));
				var row=self.createRow(arr[i]);
				self.domNode.tBodies[0].replaceChild(row, old);
			};
			self.render();
		});

Change History (1)

comment:1 Changed 12 years ago by bill

Resolution: wontfix
Status: newclosed

This is all being redone for new Table widget; updates to data will be reflected via dojo.data Write API. Won't fix this in FilteringTable?.

Note: See TracTickets for help on using tickets.