I am using the DHTMLX Gantt plugin to render a Gantt chart in a project built with Next.js (frontend) and Nest.js (backend). The Gantt view currently renders task and link data from the frontend.
We also need to implement the following functionalities:
Auto-scheduling of tasks.
Displaying and managing the critical paths.
Ensuring that any data changes (tasks, links, schedules) are reflected and saved in the database.
Could you provide guidance or examples on how to configure these functionalities using a database setup? A sample implementation or reference code would be helpful.
To use the auto-scheduling functionality, you need to enable the auto-scheduling extension. The following article explains how it can be done and how it works:
Here are examples:
Displaying and managing the critical paths.
To show the critical path, you need to enable the critical path extension and enable the highlight_critical_path config.
The following article explains how to do that and what logic Gantt uses to determine the critical path:
Here are examples:
Ensuring that any data changes (tasks, links, schedules) are reflected and saved in the database.
Gantt is a client-side library. It doesn’t directly communicate with the database or the server-side. All changes occur only inside the browser.
To send the changes to the server, you need to use the Data Processor or built-in Ajax module. You can read more about it in the following articles: