Marking the critical path on a parent task

Hi,

I want to mark the critical path on a parent task,
The background will be blue and it will have parts marked in red where the critical path passes,

Attached is a screenshot - the parent task - above - is colored blue with a red section on it where the critical path passes.

Thanks…

Hello,
The task bars consist of div elements, there is no way to partially colorize the div element. But you can implement a custom solution for that.
However, probably, the easiest way would be to use the rollup functionality to show the child task bar over the parent task bar:
https://docs.dhtmlx.com/gantt/desktop__milestones.html#rolluptasksandmilestones

You can check if a task is critical and change the rollup property of the task object.

Here is an example of how it can be implemented:
https://snippet.dhtmlx.com/h2niv5li