Is it possible in the Gantt to select multiple tasks and drag / drop them to a new start date / time, so multiple tasks can be moved in a single action?
Hello,
currently it only can be done via API. Please check this example docs.dhtmlx.com/gantt/desktop__d … htheparent
you can try implementing multiple drag and drop the same way. the only difference that you’ll get all selected items instead of all children
So if I understand this correctly the control itself does not support this functionality. If I select three tasks and I drag / drop a task to a position three days in the future, I get the original and new task data. From that the difference (i.e. three days) can be calculated and then in code we have to apply this difference to all other selected tasks.
This also means that visually in the Gannt only one task is moved?
Hi,
yes, currently a multiple drag and drop is not supported.
Yes
Not necessary. In the sample ‘Dragging childs together with the parent’ you can see an onTaskDrag handler, it fires for each tick of drag and drop. So all dragged tasks can be modified in a process and redrawed using gantt.refreshTask and visually they will be dragged all together. When the d’n’d ends changes can be saved using gantt.updateTask