Unable to create multiple grid instances
See original GitHub issueI’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 (<anonymous>)
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?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Aggrid react wrapper unable to create multiple instances and ...
Now I am using a map to iterate over some data and load multiple instances of the table with different data. But when...
Read more >Unable to Maintain state for grids when we have multiple ag ...
So , I have multiple Grids in a page which is getting generated based on for loop and only the last grid was...
Read more >Multiple instances of shotgrid create error
Hi Ryan,. It is not supported that someone can use two different instances of SG Create on the same user account. Dynamic data,...
Read more >Configuring Users, Groups and Environments for Oracle Grid ...
6.1.2 Creating the Oracle Inventory Group If an Oracle Inventory Does Not Exist ... If you try to administer an Oracle home or...
Read more >Install NVIDIA drivers on Linux instances - AWS Documentation
An instance with an attached NVIDIA GPU, such as a P3 or G4dn instance, must have the appropriate ... You can configure GRID...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hey @AmirF27 thanks for the feedback. Please paste in some sample code and I would be happy to create a patch release to make this work for you. That said, I do see that the multiple-grids demo seems to be working…
Yes. You have to give an unique table id. Ex: on HTML,
<div [id]="tableId" #hypergrid></div>
and on TS or JS uniquely set the tableId property