Gantt branch ordering - make parent task as subtask

Hello,

Gantt has ability for drag and drop
e.g.
docs.dhtmlx.com/gantt/samples/07 … ering.html

Is it possible drag root task (roottask1) and drop under another root task (roottask2)?

E.g.

Before dnd

  • roottask1
    – subtask1
    – subtask2
  • roottask2
    – subtask3
    – subtask4

After dnd

  • roottask1
    – roottask2
    — subtask3
    — subtask4
    – subtask1
    – subtask2

Hi,
no, it’s not possible, drag and drop works for reordering and not for changing the tasks hierarchy.
You can change structure of the tasks tree programmatically using gantt.moveTask method

docs.dhtmlx.com/gantt/api__gantt_movetask.html

Thanks a lot for feedback.