Task drag&drop and working days issue


#1

Hi,
I’m using D&D in gantt with working days. And issue is that task does not change it length it’s duration when mowed to not working day and other way.
On example below task starts on Friday and ends on Monday. When I drag this task to start on Monday it’s duration is 4 days and it ends on Thursday, but it I release it gantt will update data and task will end on Tuesday.
Can gantt adjust task duration on D&D ?


#2

Hello Wolland,
If I understand you correctly, you want to resize the task immediately when you drag it before releasing the mouse button. Is that correct? If it is, there is no built-in way to do that. You need to implement a custom solution by using Gantt API and Javascript. And you can encounter performance issues in large charts.
Here is an example of how it can be implemented:
http://snippet.dhtmlx.com/5/77fbbbdbb


#3

Hi,
You understand me correctly and you sample is exactly what I want to achieve.
Thanks for your help