Our state of the art Gantt chart


Post by cmdrfedora »

Hello,

Even in the example here ( https://www.bryntum.com/examples/gantt/basic/ ), using zoom to change the view start/end dates, you can't drag any of the events before the "original" start date of the first task. I assume this is because of the project start date acting as a natural constraint, but I'm not sure how to remedy this (my client needs to be able to use the gantt in such a way to reorganize tasks, and they need to be able to drag the tasks both forward and backwards as much as they want).

Is there any way to make it so all tasks can move anywhere, even before the project start date?

Thanks.

Post by nickolay »

Hi,

Your assumption is correct, the project start date constraints the start dates of all tasks. You can try setting `manuallyScheduled` field of all tasks to `true`, however this will "turn off" the dependencies handling as well.

Post by nickolay »

You can also try to set the project start date into the distant past, and for every task, set the `constraintType`+ `constraintDate` field.

https://bryntum.com/docs/gantt/#Gantt/model/TaskModel#field-constraintType

Post by cmdrfedora »

What constraints would I use? Do I just set the root parent's constraint to, say, "start no earlier than", and then a very far away previous date?

The tasks I am dragging do have children, so that seems to make it impossible regarding "manually scheduling" them.

Post by nickolay »

"start no earlier than" should work, yes. You can set it on parent tasks only, thats correct, constraints for child tasks are inherited from parent.

Post Reply