slickGrid is null? #704
-
|
slickGrid is null? I'm using this package within react. I can construct and create the grid fine: Which makes it visible. I can even update the data using: The part I am finding strange in comparison to your examples is that sgb1.current.slickGrid is undefined? Is slickGrid not initialised or is there an extra step to force it to happen? Env: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Hi, I'm afraid I can't help you much since I have never used React, however you can maybe take a look at another project started by other developers, take a look at Slickgrid-React |
Beta Was this translation helpful? Give feedback.
-
|
@ryanhamilton I just released an official port for React, you can visit Slickgrid-React github page and also a Live Demo 🚀 |
Beta Was this translation helpful? Give feedback.
The
slickGridobject might not be available right away, you can use eitheronGridCreatedoronSlickerGridCreatedevents to get it after it's created and available (see Events - Wiki. For adding/removing columns is shown in this Example 7You seem to be mixing code from this project's vanilla grid bundle while also using SlickGrid/DataView directly, you will probably face a few issues by doing that. I'm saying this because I see you're using
Slicker.GridBundlewhich is great but then you're using the SlickGrid and DataView directly and by doing so you're basically bypassing Slickgrid-Universal's code and you'll for sure encounter problems (out of sync issues and others). I would suggest to…