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 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: https://docs.dhtmlx.com/gantt/desktop__critical_path.html