Can gantt connect from the intermediate node part to the beginning of the next node?

Can gantt connect from the intermediate node part to the beginning of the next node?


Not from the beginning of one node to the beginning or end of another node

Hello Liuy,
Gantt doesn’t show links that way, but you can implement a custom solution by using Gantt API and Javascript.
First, you need to hide regular links:

.gantt_task_link{
  display: none;
}

Then you need to use the additional layer feature to draw links:
https://docs.dhtmlx.com/gantt/api__gantt_addtasklayer.html
You can show any HTML elements and define your logic in the additional layer.

After that, you need to use the onTaskDrag and onAfterTaskDrag event handlers to update predecessors when you drag the successor tasks:
https://docs.dhtmlx.com/gantt/api__gantt_ontaskdrag_event.html
https://docs.dhtmlx.com/gantt/api__gantt_onaftertaskdrag_event.html

Here is an example of how it might be implemented:
http://snippet.dhtmlx.com/75d1f4b82
It is not an ideal solution, but it will help you to create your solution.

1 Like

Thank you, solved my problem, I am studying it.