how do i call data on init, i see in the examples that the data is being fetched from the config but i'd like to call it on one of the lifecycles (pls refer to the img below)...... thanks so much
Support Forum
You would set autoLoad:false
(or remove it) in the project definition on the right side. They you would need to call this.gantt.project.load()
when you want the data to load (on the left side).
Hi Saki
so i've tried removing autoLoad, tried to set it as false and took a stab at loading the data through .load() but to no avail.
Is there an example in Angular I can view where this is being done or could you point me to what i'm doing wrong? i've attached a thumbnail in this email. thanks a lot.
Casman
- Attachments
-
- loading data bryntum.PNG (260.52 KiB) Viewed 412 times
Please see this method on the project instance to load inline data programmatically: https://bryntum.com/docs/gantt/#Gantt/model/ProjectModel#function-loadInlineData
Also this section is useful: https://bryntum.com/docs/gantt/#Gantt/model/ProjectModel#working-with-inline-data
And https://bryntum.com/docs/gantt/#Gantt/model/ProjectModel#config-tasksData