Our state of the art Gantt chart


Post by kamran812 »

How to load children / child task along with the other normal Gantt tasks?
I'm able to create subtask and these also also saving in DB with ParentID as well, but on refresh it converts to the normal task because I do not have any function or listener added to load these child tasks. On initial load or we want to load chalders and display in the Gantt view.

	gantt.project.inlineData = {
		tasksData : tasks.data, 
		dependenciesData : tasks.links,
	};

tasks.data have an object of arrays.


Post by mats »

chalders

What's chalders?

Do you mean you want to lazy load children?


Post by kamran812 »

Sorry Mats, its a typo its children not chalders, in our case we are loading the normal tasks but not the child tasks, I want to know that how to load these tasks we are using flatData which is in the form of array of object

tasksData : tasks.data, 

tasks.data is having all the data coming from the DB and displaying as a Gantt Chart.
Basically right now we are not getting children property in the parent task all are behaving like a normal tasks no parent child concept.


Post by marcio »

Hey kamran812,

Have you tried to use the transformFlatData option with your data??

https://bryntum.com/products/gantt/docs/api/Core/data/mixin/StoreTree#config-transformFlatData

Besides that, could you share an example about how your data looks like??

Best regards,
Márcio


Post Reply