fin-hypergrid / fin-hypergrid/core
Unable to create multiple grid instances
- Dominant language
- JavaScript
- Stars
- 907
- Forks
- 139
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to create multiple grid instances, but I'm getting errors in the console if I try to do this. I get the same errors simply if I terminate a grid and then try to create another instance.
These are the errors I'm getting:
```
Canvas.js:305 TypeError: Cannot read property 'cellPadding' of undefined
at Constructor.resetRowHeaderColumnWidth (index.js:1516)
at Constructor.renderGrid (index.js:545)
at Constructor.paint (index.js:203)
at Canvas.paintNow (Canvas.js:303)
at Canvas.repaint (Canvas.js:539)
at Constructor.repaint (index.js:959)
at Column.set header [as header] (Column.js:139)
at Object.set (columnProperties.js:47)
at assignOrDelete.js:23
at Array.forEach ()
```
```
ERROR TypeError: Cannot read property 'reduce' of undefined
at Constructor.getFooterRowCount (subgrids.js:133)
at Constructor.getVisibleScrollHeight (index.js:221)
at Constructor.synchronizeScrollingBoundaries (scrolling.js:330)
at Constructor.behaviorShapeChanged (index.js:904)
at Constructor.behaviorChanged (index.js:888)
at Constructor.changed (Behavior.js:812)
at Constructor.createColumns (Behavior.js:332)
at Constructor.createColumns (index.js:47)
at Constructor.reset (Behavior.js:133)
at Constructor.initialize (Behavior.js:57)
```
I'm using version `3.2.0`.
Basically I have multiple tabs and I would like to have a separate grid in each of the tabs.
Is this possible?
Contributor guide
Assessment
This issue has not been assessed yet.