Timeline move by day

Hi,

I have noticed that when we move a task in the Timeline, the position will be set according to the current scale (beginning of the day, beginning of the week, beginning of the month).

I am asked to change that. My employer wants to be able to move the task on the time line to a specific DAY, even if the current scale is set to WEEKS or MONTHS.

Is that possible? So far, nothing indicates to me that it is.

In the screenshot, we see a scale of WEEKS. The circled task is what I would like to mimic. Being able to drop it a specific day in the week, instead of beginning of the week everytime.

Capture d’écran 2024-09-23 094932

Hello Karl,
You can disable the round_dnd_dates config:
https://docs.dhtmlx.com/gantt/api__gantt_round_dnd_dates_config.html

Then, after you drag a task, Gantt will round it to the nearest hour.

Here is an example:
https://snippet.dhtmlx.com/wss4h1ct

1 Like