Allow row drop into closed task

Currently if dnd in any depth is enabled (order_branch & order_branch_free), the dragged element can only be added as a child to a task if the task has currently no children or is not closed.
But it is not possible to drop a task into a closed task which already has children.

Can be reproduced with: https://docs.dhtmlx.com/gantt/samples/07_grid/08_drag_between_levels.html
Just close Task#2 and try to drop Task#3 into it.

Is there a way to:

  • disable the “add as new first child if currently no children” functionality
  • allow to drop as child of currently closed task which already has children

Thanks

Hello,

But it is not possible to drop a task into a closed task which already has children.
allow to drop as child of currently closed task which already has children

We are aware of the issue that there is no way to reorder a task to a parent task that is collapsed. The dev team will fix that issue in the future, but I cannot give you any ETA.

As a workaround, you can try to reorder tasks in the marker mode:
https://docs.dhtmlx.com/gantt/api__gantt_order_branch_config.html
http://snippet.dhtmlx.com/5/b2aac88d8


disable the “add as new first child if currently no children” functionality

You just need to reorder it in a different way and drag the task above or below the target task.