Our state of the art Gantt chart


Post by produto »

Hello, I was wondering if it is possible for me to pull the start date of my task to as soon as possible, respecting the dependency.

For example, I have 2 tasks, A and B. A starts on January 1st and B starts on January 5th. I create a dependency where task B should start 1 day after the end of task A.

I would like task B to be dragged to the first day it can start after this dependency is created.

My constraint type is now "startnoearlierthan".


Post by marcio »

Hey produto,

Thanks for reaching out!

Could you provide more clarification regarding that? Do you want to move the task automatically when you create the dependency? Or are you not able for some reason to achieve the behavior that you mentioned?

Are you able to reproduce the behavior that you want in our demo here? https://bryntum.com/products/gantt/examples/basic/

Best regards,
Márcio


Post by produto »

For example, I have these two tasks:

tasks.png
tasks.png (20.48 KiB) Viewed 106 times

When I add a FS Dependency with a 1 day lag, it looks like this:

dependency.png
dependency.png (4.54 KiB) Viewed 106 times

)

But when I add a FS Dependency, I want the successor to be dragged like this:

dragged.png
dragged.png (13.92 KiB) Viewed 106 times

I want the successor to be dragged automatically to the minimum start date. In the case above, the minimum is 1 day after the end of the predecessor (task 1)


Post by marcio »

Hey,

Thanks for the clarification.

So, currently, we don't have a way to set that behavior "automatically", you'll need to listen to the event that is triggered after you create the dependency, and from there, update the start date of "New task 2".

Please check the following event https://bryntum.com/products/gantt/docs/api/Gantt/feature/Dependencies#event-afterDependencyCreateDrop or check when a new record is added to the DependencyStore https://bryntum.com/products/gantt/docs/api/Gantt/data/DependencyStore#event-add

Best regards,
Márcio


Post Reply