enables rounding the task's start and end dates to the nearest scale marks
gantt.config.round_dnd_dates = false;
gantt.init("gantt_here");
If you disable the property, Gantt will round the start and end dates of the dragged task to the nearest hour not to the nearest scale marks. In this case, you may use the time_step property to configure the step for dragging a task. See the example:
Related sample: Gantt. Drag'n'drop of tasks with the minimum step
Back to top