ClassGanttDragDropBehavior
The behavior class responsive for the drag-drop operation in the RadGanttView control.
Definition
Namespace:Telerik.Windows.Controls.GanttView
Assembly:Telerik.Windows.Controls.GanttView.dll
Syntax:
public class GanttDragDropBehavior : SchedulingDragDropBehavior, ISchedulingDragDropBehavior
Inheritance: objectPlatformIndependentFreezableSchedulingBehaviorBaseSchedulingDragDropBehaviorGanttDragDropBehavior
Implements:
Inherited Members
Constructors
GanttDragDropBehavior()
Declaration
public GanttDragDropBehavior()
Methods
CanDrop(SchedulingDragDropState)
Gets the value specifying whether the drag operation can be completed, or not.
Declaration
protected override bool CanDrop(SchedulingDragDropState state)
Parameters
state
DragDropState identifying the current drag operation.
Returns
True when the drag operation can be finished, otherwise false.
Overrides
Remarks
This method is called on every mouse move. All properties in the DragDropState are valid.
Drop(SchedulingDragDropState)
When overridden in a derived class completes the drop operation. This method is called only in the context of the drop target control.
Declaration
protected override void Drop(SchedulingDragDropState state)
Parameters
state
DragDropState that provides context for the current operation.
Overrides
Remarks
When the drag source and the drop target are the same control, this method is called before DragCompleted.
TryApplyReorder(SchedulingDragDropState, IDateRange, object)
This method applies the changes for the reorder operation in the grid section.
Declaration
protected void TryApplyReorder(SchedulingDragDropState state, IDateRange draggedItem, object destinationGroupKey)
Parameters
state
The SchedulingInteractionState state used for the operation.
draggedItem
The item which is being dragged.
destinationGroupKey
The destination groupKey, where the dragged item is being dropped.