treeAutoExpand Option for GANTT
Asked by Martin
8 years ago.
Dear all,
is there an option to use the "treeAutoExpand=false" setting for the GANTT-Chart also?
I want to have all childs closed by default.
Thanks in advance,
Martin
Answer posted by Dan Letecky [DayPilot]
8 years ago.
By default all nodes in the Gantt chart are expanded. You can override it for each node (task) by setting task.row.collapsed = true:
dp.tasks.list = [
{
id: 1
start: "2018-01-01T09:00:00",
end: "2018-01-01T13:00:00",
text: "Task 1",
row: {
collapsed: true
}
}
];
Comment posted by Martin
8 years ago.
Perfect. Many thanks for your fast response.
This question is more than 1 month old and has been closed. Please create a new question if you have anything to add.