Our state of the art Gantt chart


Post by bhavadharanisure »

Hi,
In our project we have a gantt and scheduler as partners .

We have implemented dragdrop functionality from Gantt to scheduler.

Now I want to restrict horizontal drag while I vertically drag a taskbar from gantt and drop it in the scheduler.
And on other times I want horizontal dragdrop of taskbar within the gantt .

How to conditionally restrict the horizontal movement of taskbar while vertical dragdrop is taking place?


Post by mats »

If you implemented it using our DragHelper, please see https://bryntum.com/products/scheduler/docs/api/Core/helper/DragHelper#config-lockX to lock moving in only vertical direction.


Post by bhavadharanisure »

Hi Mats,
Tried giving

lockX: true

.During this the cloned element is not moving in horizontal direction but the dragged target is moving in horizontal direction . As a result on drop, the element is dropped at different place from that of the original position.

Is there any other way ?


Post by mats »

Please provide a test case with code.


Post Reply