Our state of the art Gantt chart


Post by pedro_softplan »

Hello, I have a question regarding task dragging and the date constraint.

This example below in my application:

my_app
my_app
Captura de tela 2024-03-13 093817.png (31.28 KiB) Viewed 86 times

The same replica in the Gantt Chart Demo:

bryntum
bryntum
Captura de tela 2024-03-13 093913.png (23.99 KiB) Viewed 86 times

When I drag the "Apache" task, it saves normally in the Gantt Chart Demo. However, when I make the same movement in my application, it returns the task to the previous state, not letting me throw it back. Is this because of the constraint? I've settled the constraint type as "startnoearlierthan" and the constraint date to the task.start_date. That means. the constraint date it's he's only starts.

The main question is: What type of constraint should I setup to being able to drag this subtasks backwards?.


Post by marcio »

Hey pedro_softplan,

Thanks for reaching out and welcome to our forums.

Which demo are you referring to? I tried it in our basic Gantt demo and it worked as you described your application. https://bryntum.com/products/gantt/examples/basic/

You can set manuallyScheduled to true and with that, you should be able to move backwards. https://bryntum.com/products/gantt/docs/api/Gantt/model/TaskModel#field-manuallyScheduled

If you could share your application for us to check how you set up the Gantt and the tasks, we could provide better assistance here.

Best regards,
Márcio


Post by alex.l »

Hi pedro_softplan,

Could you please share test data with us to reproduce behaviour you described? Not clear what constraints you used, does your task have parent and dependencies or other relations that may affect on it.

We need test data, steps to reproduce, actual result and expected result described.

Thank you!

All the best,
Alex


Post Reply