core icon indicating copy to clipboard operation
core copied to clipboard

setValue method of Hypergrid failing with TypeError: Cannot read property 'subgrid' of undefined

Open nsivraj opened this issue 7 years ago • 2 comments

When I use these two lines in my code then I get an error: TypeError: Cannot read property 'subgrid' of undefined

// Error!!!! grid.setValue(colPos['bob'], gridRow+1, rowData[i].bob); grid.setValue(colPos['pi'], gridRow+1, rowData[i].key);

But when I use these two lines in my code then everything works fine

// No error!!!!! grid.behavior.dataModel.setValue(colPos['bob'], gridRow, rowData[i].bob); grid.behavior.dataModel.setValue(colPos['pi'], gridRow, rowData[i].key);

Is the grid.setValue method the one to use or is the grid.behavior.dataModel.setValue method the one to use?

The error only seems to happen when the height of the div containing the Hypergrid is smaller than the height that the Hypergrid eventually grows to as rows are dynamically added.

nsivraj avatar Apr 04 '17 21:04 nsivraj

@nsivraj We can address your concerns later this week

Dwaynekj avatar Apr 05 '17 01:04 Dwaynekj

@nsivraj We have a ticket for this in our backlog. You will receive an update when it is in our sprint

Dwaynekj avatar May 13 '17 23:05 Dwaynekj