Class
GanttDragDropBehavior

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:

cs-api-definition
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

GanttDragDropBehavior()

Declaration

cs-api-definition
public GanttDragDropBehavior()

Methods

CanDrop(SchedulingDragDropState)

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

Declaration

cs-api-definition
protected override bool CanDrop(SchedulingDragDropState state)

Parameters

state

SchedulingDragDropState

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.

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

cs-api-definition
protected override void Drop(SchedulingDragDropState state)

Parameters

state

SchedulingDragDropState

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.

TryApplyReorder(SchedulingDragDropState, IDateRange, object)

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

Declaration

cs-api-definition
protected void TryApplyReorder(SchedulingDragDropState state, IDateRange draggedItem, object destinationGroupKey)

Parameters

state

SchedulingDragDropState

The SchedulingInteractionState state used for the operation.

draggedItem

IDateRange

The item which is being dragged.

destinationGroupKey

object

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