Tasks with children are automatically treated as task groups.

The TaskGroupMode property sets the behavior of task groups.

  • Auto (default) - the group size is automatically calculated from its children
  • Manual - the group size is specified using task start and end

JavaScript

gantt.taskGroupMode = "Manual";