Discuss anything related to web development but no technical support questions


Post by natalie321 »

Hello,
I'm currently using Bryntum Gantt in my project, and I've encountered an issue when attempting to update task dependencies. When I modify them through the Gantt chart interface, the task dependencies do not seem to refresh or update correctly.
Specifically, when I link two tasks and try to adjust one of their dates, the dependency relationship isn’t reflected in the timeline, and the tasks remain in their previous positions. I’ve tried using both the GUI and the API methods to set the dependencies, but the issue persists.
I’ve checked for any JavaScript errors in the console, but nothing appears related to this issue. The following code to create and manage the dependencies:

const task1 = ganttStore.getById(1);
const task2 = ganttStore.getById(2);
task1.addDependency({ to: task2, type: 1 });  // Finish-to-start dependency

Has anyone encountered a similar issue, or can you suggest any solutions or debugging tips to resolve this?
Thanks in advance for your help!
Block Blast


Post by khattakdev »

Hi,

Please share your project files and the steps to reproduce the issue. It isn't easy to figure it out by looking at those lines alone.

Arsalan
Developer Advocate


Post Reply