Hey,
we have a schedule with a few items under a parent item.
the parent item dates are august 26 to august 26, and all the children dates are
20 in may to 20 in may,
when we try to show it, the parent date is changed to the date of his children (I guess that is by desgin?..)
is there a prop we can use to disbale this behavior? i see a few props called auto_scheduling…
( auto_scheduling_initial,
auto_scheduling,
auto_scheduling_strict,
auto_scheduling_compatibility,
auto_scheduling_descendant_links)
which of them should we use?
we only want to disable this changes for this case…
Hello,
when we try to show it, the parent date is changed to the date of his children (I guess that is by desgin?..)
It’s a designed behavior of the project tasks. A project task is a task that starts, when its earliest child task starts, and ends, when its latest child ends.
The difference between project and regular tasks is that the duration of a project task depends on its children and is changed respectively. You can read more information about project tasks here:
Task Types Gantt Docs ;
is there a prop we can use to disbale this behavior?
One of the options, is to switch projects in your dataset to task
type, or to some custom type, so you could style them as a project while keeping manual scheduling of their duration.
You can return a gantt_project
CSS class in the gantt.templates.task_class
, so that the appearance resembles the project task:
task_class Gantt Docs ;
Please check the following snippet:
DHTMLX Snippet Tool ;
Thanks Artyom!
Are there any risk in treating it as a task instead of project? in term of behavior/logic?.. anything you can think of we should consider?..
Hello,
Firstly, it depends on your project. If you are already familiar with the behavior of tasks associated with the task type and are satisfied with their functionality, you should not encounter any issues:
Task Types Gantt Docs ;
I recommend clearly defining the types of tasks you plan to use to avoid any confusion regarding their behavior in the future.
In version 9.0, Gantt introduced the ability to manually schedule projects. As a result, the Gantt chart now displays both fixed durations and durations derived from subtasks:
Manually Scheduled Summary Tasks Gantt Docs ;
And here is an example:
Manually Scheduled Projects