Custom row at the bottom of parent


#1

Hey I’m keen to duplicate a similar thing to the picture below where I inject a custom row at the bottom of the parents to allow users to add tasks/milestones. Could anyone help me get started on how this could be achieved? Thanks!


#2

Hello Skoofy,
There is no built-in way to do that. You need to implement a custom solution by using the Gantt API and Javascript.

You need to create a custom task type, unschedule it, show the buttons with the HTML elements and manually add the code to add it below each parent task:
https://docs.dhtmlx.com/gantt/desktop__task_types.html#creatingacustomtype
https://docs.dhtmlx.com/gantt/desktop__specifying_columns.html#datamappingandtemplates
https://docs.dhtmlx.com/gantt/desktop__unscheduled_tasks.html
Here is an example of how it might be implemented:
http://snippet.dhtmlx.com/5/5668cfb07

The dev team will add that feature in the future, but I cannot give you any ETA.


#3

This is awesome - exactly what I was after! Thanks, ramil!