hi, in system our, i want when drag one task have start_date: ‘07/11/2019 00:00’, end_date: ‘07/11/2019 12:00’ then task don’t drag_size and autosize task
my english very bad sorry !!!
longhai
November 7, 2019, 7:26am
#2
Hi @linhtv97
I also have the same problem as you
Siarhei
November 12, 2019, 3:53pm
#3
Hi @longhai ,
I think this post could help you with this issue:
Hi @linhtv97
If I understand you correctly, you want to drag tasks from day-to-day without changing their hours-minutes settings, am i right?
In order to do this, you should change some config settings and add additional drag logic to the onBeforeTaskChanged event(for example).
In config, you need to disable round_dnd_dates to forbid rounding dates after drag. And set duration_unit to hours in order to avoid collapsing for tasks that are less than one-day duration.
In the onBeforeTaskChanged …
If it is not the thing you need, you can clarify your question, and I will provide you the more appropriate help.
btw, if you meant disable of resize option, you can change it using the config gantt.config.drag_resize
, API: https://docs.dhtmlx.com/gantt/api__gantt_drag_resize_config.html