Is there an event that fires when the user is moving an item in the timelime? I would like to check if the item overlaps with other items that depend on the parent and cancel the drag action if there is any conflict.
1 Answer, 1 is accepted
Dess | Tech Support Engineer, Principal
answered on 18 Oct 2019, 08:46 AM
As a descendant of RadDragDropService, GanttViewDragDropService handles the whole drag and drop operation. Its PreviewDragOver event allows you to control on what targets the task being dragged can be dropped on. Here you can set the CanDrop property to false and thus the drop operation will be forbidden. The PreviewDragDrop event allows you to get a handle on all the aspects of the drag and drop operation, the source (drag) RadGanttView, the destination (target) control, as well as the task being dragged.
Additional information about the basic drag drop service and its derivative used in RadGanttView is available in the following help articles: