This grid demo creates a "new Grid", which I do not explicitly declare in my app. What is the best way, and place to hook this into a Gantt chart? I have a GanttToolbar.js and gantt.config.ts.
Thank you
Attachments
Screen Shot 2021-12-21 at 10.00.28 AM.png (13.75 KiB) Viewed 820 times
Thanks for the response. The demo has a few more pieces to it though, like functions for the next and previous buttons, and an indicator for the search results count.
I am also not using a
me.grid = new Grid({})
Will I need to hook into the grid through the gantt object?
If you used gantt, of course you should replace grid.features.search to gantt.features.search.
There are many different cases to get an instance of parent element, but better to share your code, it depends on your solution a lot. Meanwhile you could review our Gantt demos, it has examples how to achieve that. (check this one https://bryntum.com/examples/gantt/advanced ).
Very simple example I created in our advanced demo:
I see from the code there is no problem to get a gantt instance in field handler to call the code I mentioned above, you have me.gantt set in parent setter.
What is your question then?
I am just having trouble with implementation - I think a code example for how to wire all of this together would be helpful if you have on available, since I am new to Bryntum.
We will be glad to help you. Please be more specific in your questions. I see you started your implementation, what exactly is not clear to you? If possible, please attach a runnable test case with your questions, so we will be able to run it and debug.