Drag and Drop in different Scale than Chart Scale

Hi,

i’m currently evaluating dhtmlx and have found a tricky issue with drag and drop on different scales.
Let’s say i want to use the gantt chart for management purpose in a similar case than this one:
docs.dhtmlx.com/gantt/samples/03 … _year.html
When dragging a task, the start date on the left is updated automatically, which is excactly what i need, but when i drop it, it falls back to the closest unit of the current chart scale (in above example, month). What i want for example, is draging and dropping in the “day” unit, but having the chart displayed in “month” unit, where when i release the task, it stays at the current day.

Is there any way to do that?
Thanks, Alex

Hi,
you can set global time step of gantt to one day, and disable default correcting to the time scale:gantt.config.time_step = 60*24; gantt.config.round_dnd_dates = false;
docs.dhtmlx.com/gantt/api__gantt … onfig.html
docs.dhtmlx.com/gantt/api__gantt … onfig.html

Awesome!

Thanks for the quick and perfect reply!