Hello Linh,
It is hard to suggest what might be wrong as I couldn’t reproduce the issue locally, and I don’t see your code.
Please, reproduce the issue in the snippet, then click on the “Share” button and send me the link:
https://snippet.dhtmlx.com/38ee1b370
Or send me an HTML file with all the necessary Javascript and CSS files.
can u share us the code. how to do this
Hello Epsi,
To display several tasks on the same row, you can use the Split Tasks
feature:
https://docs.dhtmlx.com/gantt/desktop__split_tasks.html
Here are examples:
https://docs.dhtmlx.com/gantt/samples/04_customization/21_open_split_task.html
http://snippet.dhtmlx.com/99620af0e
hi,
can you share with me more information / code,
how did you combine “gantt.addTaskLayer…” in your code?
how to use it in the right way?
Thanks…
Hello,
You need to add the addTaskLayer
method inside the onGanttReady
event handler, then it will be added each time Gantt is initialized (otherwise, it will be added only once):
https://docs.dhtmlx.com/gantt/api__gantt_onganttready_event.html
Here is an example in the snippet:
https://snippet.dhtmlx.com/eqj9n6v0
To see the custom elements, you need to collapse the parent task.
If you get the gantt.addTaskLayer is not a function
error, it means that you have the Standard version.