I need to get the window.instance as we are getting undefined while initiating
console.log(window._instance);
Support Forum
Hi,
Please check this guide on how to access the Gantt instance https://bryntum.com/products/gantt/docs/guide/Gantt/integration/react/guide#accessing-the-bryntum-gantt-instance
Hey omkar ankam,
To access the instance in a React application, as Tasmin shared with that link, you need to access the ref that you set to your Gantt.
ganttRef.current.instance
If you still have questions, if you could share how is your component coded, that would help us to understand your structure.
Best regards,
Márcio
Hi,
Could you please be more specific? I cannot understand the question.
Your last screenshot is a TypeScript problem, isn't it?
Please provide a test case, steps to reproduce, expected result and actual result, and we will be able to help faster.
I would recommend you to read our guide https://bryntum.com/products/gantt/docs/guide/Gantt/integration/react/guide#accessing-the-bryntum-gantt-instance and check examples that have this code in sources. You can find them in examples/react/ folder of the sources you downloaded from CustomerZone.
Here is the guide How to ask for help viewtopic.php?t=772
All the best,
Alex