Our state of the art Gantt chart


Post by MauriceLapre »

Hi,
I have the following situation:
Bryntum Gantt - 001.png
Bryntum Gantt - 001.png (30.58 KiB) Viewed 837 times
There's a parent task with 4 child tasks without dependencies to one another. Each child task has its own start and end date. If I drag the parent task a week further, the child tasks will move with it but due to earlyStartDate (if I'm not mistaken) they will all get the earliest start date possible and thereby ignoring their old "hierarchie":
Bryntum Gantt - 002.png
Bryntum Gantt - 002.png (12.43 KiB) Viewed 837 times
Is it possible to disable this functionality, so I would end up with this:
Bryntum Gantt - 003.png
Bryntum Gantt - 003.png (9.81 KiB) Viewed 837 times
I've tried setting manuallyScheduled to true on the child tasks, but that blocks moving the parent task.

Thanks!

Post by sergey.maltsev »

Hi!

Gantt has no such functionality yet.
I can suggest you to use your own model and override setStartDate method with your custom logic to update children tasks .
class MyModel extends TaskModel {
...   
    setStartDate(date, keepDuration) {
        // Your custom logic goes here
        super.setStartDate(date, keepDuration);
    }
}

const project = window.project = new ProjectModel({
    taskModelClass : MyModel,
...
});
We offer Professional Services to assist you with this.
Details here: https://www.bryntum.com/services/

Post by MauriceLapre »

Alright, thanks! I'll give that a try.

Post Reply