Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#12611 closed defect (fixed)

Changing layout and/or store for dojox.grid.EnhancedGrid causes "this.scrollboxNode is undefined" and "node is undefined"

Reported by: Matias Rask Owned by: evan
Priority: high Milestone: 1.6.1
Component: DojoX Grid Version: 1.6.0
Keywords: grid, enhancedGrid, scrollboxNode, node, undefined Cc:
Blocked By: Blocking:

Description

First create an EnhancedGrid? with valid structure and data, then change the structure via grid.set('structure', newStructure); and store via grid.setStore(newStore);

var grid = new dojox.grid.EnhancedGrid({
	store : initialStore,
	structure : initialStructure,
	clientSort : false,
	singleClickEdit : true,
	region : "center"
});
borderContainer.addChild(this._grid);

After retrieving data from server and populating the grid with the new data:

grid.set('structure', newStructure);
grid.setStore(newStore);

The outcome seems to be correct but "this.scrollboxNode is undefined" and "node is undefined" pops up in firebug when clicking on the grids cells/header.

Change History (3)

comment:1 Changed 9 years ago by evan

Milestone: 1.6.11.7

Fixed by [24227] - resetting focusview during setStructure()(not sure why not reflected here).

comment:2 Changed 9 years ago by evan

Resolution: fixed
Status: newclosed

comment:3 Changed 9 years ago by evan

Milestone: 1.71.6.1

Backported to 1.6 branch with [24272]

Note: See TracTickets for help on using tickets.