New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class GanttDragDropBehavior : SchedulingDragDropBehavior, ISchedulingDragDropBehavior

Inheritance: objectPlatformIndependentFreezableSchedulingBehaviorBaseSchedulingDragDropBehaviorGanttDragDropBehavior

Implements: ISchedulingDragDropBehavior

Inherited Members SchedulingDragDropBehavior.CanStartDrag(SchedulingDragDropState)SchedulingDragDropBehavior.CreateInstanceOverride()SchedulingDragDropBehavior.GetReorderDropPosition(double)SchedulingBehaviorBase.BeginEdit(SchedulingInteractionState, object)SchedulingBehaviorBase.Commit(SchedulingInteractionState)SchedulingBehaviorBase.Cancel(SchedulingInteractionState)SchedulingBehaviorBase.TryApplyChanges(SchedulingInteractionState, object, IDateRange)PlatformIndependentFreezable.CreateInstanceCore()...

Constructors

C#
public GanttDragDropBehavior()

Methods

Gets the value specifying whether the drag operation can be completed, or not.

C#
protected override bool CanDrop(SchedulingDragDropState state)
Parameters:stateSchedulingDragDropState

DragDropState identifying the current drag operation.

Returns:

bool

True when the drag operation can be finished, otherwise false.

Overrides: SchedulingDragDropBehavior.CanDrop(SchedulingDragDropState)

Remarks:

This method is called on every mouse move. All properties in the DragDropState are valid.

When overridden in a derived class completes the drop operation. This method is called only in the context of the drop target control.

C#
protected override void Drop(SchedulingDragDropState state)
Parameters:stateSchedulingDragDropState

DragDropState that provides context for the current operation.

Overrides: SchedulingDragDropBehavior.Drop(SchedulingDragDropState)

Remarks:

When the drag source and the drop target are the same control, this method is called before DragCompleted.

This method applies the changes for the reorder operation in the grid section.

C#
protected void TryApplyReorder(SchedulingDragDropState state, IDateRange draggedItem, object destinationGroupKey)
Parameters:stateSchedulingDragDropState

The SchedulingInteractionState state used for the operation.

draggedItemIDateRange

The item which is being dragged.

destinationGroupKeyobject

The destination groupKey, where the dragged item is being dropped.