Enable Move Forward/Move Backward on multi-task selection

how to Enable Move Forward/Move Backward on multi-task selection. here is the link to demo sample and it works Move Forward/ Move Backward.
docs.dhtmlx.com/gantt/samples/0 … ction.html


You need in dhtmlxToolbar component to add such buttons

thanks, polina…

If i checked on the checkbox, it selects all task. how can i do this?
Please see picture below.if you don’t understand my question.

Now understood. So, to get all tasks, you can use eachTask method. docs.dhtmlx.com/gantt/api__gantt_eachtask.html
And then update dates in data and call refreshTask() to redraw it in Gantt chart.

Please chack the example docs.dhtmlx.com/gantt/snippet/808cd958

Thanks Polina

is there any mouse drag event to move all task together at the same time? like the following example
(In this example move task buttom moves all task forward but i need to drag all task at the same time.)

You can add this functionality using onTaskDrag and onAfterTaskDrag events.
Please check the sample how to achieve it docs.dhtmlx.com/gantt/snippet/abb0f9b1
But it is just an example how to drag children together with parent and you need similar approach to required tasks.

thanks polina

Hi polina,
i have another issue, look attachment.
please help me.
issue is (i want to drag linked task, after dragging any of linked task the days difference between linked task be same.)

At first you need to get all links related to the certain task
docs.dhtmlx.com/gantt/desktop__ … ertaintask
then get other tasks which connected with dragged task using source or target property in the link object
and use similar approach like in the sample in my previous reply to drag tasks.