Handles task-card reordering between columns, insertion hints, and edge-triggered scrolling during drag operations.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadTaskBoardDragDropService : RadDragDropService, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IMessageListener
Inheritance: objectDisposableObjectRadObjectRadServiceRadDragDropServiceRadTaskBoardDragDropService...
Implements:
Inherited Members
Constructors
Creates a drag-and-drop service for the specified task board.
public RadTaskBoardDragDropService(RadTaskBoardElement owner)
The board whose columns and scrollbars are affected by drag operations.
Properties
Gets or sets the offset from the edges of the control at which automatic scrolling starts.
public int AutoScrollOffset { get; set; }
Methods
Prevents drag operations from starting when the board is sited, and otherwise applies the base service's start checks.
Updates the insertion hint and starts or stops board and column scrolling when the pointer reaches their edge zones.
protected override void HandleMouseMove(Point mousePos)
The current pointer position in screen coordinates.
Overrides:
Determines whether the pointer is over a column, task card, or column header that can accept a drop.
protected override bool IsDropTargetValid(ISupportDrop dropTarget)
The element being considered as the drop target.
Returns:true when the target is a task board column, card, or column header.
Overrides:
Moves the dragged card to the target column and inserts it relative to the target card or at the beginning when dropped on a header; a header drop also expands the source column if it was collapsed.
protected override void OnPreviewDragDrop(RadDropEventArgs e)
The drop event data, including the hit target and drop location.
Overrides:
Marks supported task board elements as valid drop targets and remembers the current target for column edge scrolling.
protected override void OnPreviewDragOver(RadDragOverEventArgs e)
The drag-over event data, including the element under the pointer.
Overrides:
Advances vertical scrolling in the specified column while a drag remains in its edge-scroll zone.
protected virtual void OnScrollTimerColumnTick(RadTaskBoardColumnElement column)
The column whose scrollbar is advanced.
Advances horizontal board scrolling while a drag remains in the board's edge-scroll zone.
protected virtual void OnScrollTimerOwnerTick()
Restores the dragged item's opacity, stops edge-scroll timers, and releases the insertion-hint window.
protected override void PerformStop()
Overrides:
Prepares the drag context, dims the dragged item, calculates its outline offset when the cursor is not centered, and initializes the insertion hint.
protected override bool PrepareContext()
The result returned by the base context-preparation method.
Overrides: