New to Telerik UI for WinForms? Start a free 30-day trial

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:

C#
public class RadTaskBoardDragDropService : RadDragDropService, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IMessageListener

Inheritance: objectDisposableObjectRadObjectRadServiceRadDragDropServiceRadTaskBoardDragDropService...

Implements: ICustomTypeDescriptorIDisposableIMessageListenerINotifyPropertyChanged

Inherited Members RadDragDropService.messageFilterAddedRadDragDropService.xOutlineFormOffsetRadDragDropService.yOutlineFormOffsetRadDragDropService.beginPointRadDragDropService.DisposeManagedResources()RadDragDropService.HandleLeftButtonUp()RadDragDropService.HandleEscKeyDown()RadDragDropService.OnPreviewDragHint(PreviewDragHintEventArgs)RadDragDropService.RestoreOriginalMouseCursor()RadDragDropService.SetHintWindowPosition(Point)RadDragDropService.ShouldBeginDrag(Point, Point)RadDragDropService.OnPreviewDragStart(PreviewDragStartEventArgs)RadDragDropService.PerformStart()RadDragDropService.Commit()RadDragDropService.GetDropTarget(Point, out Point)RadDragDropService.OnPreviewDropTarget(PreviewDropTargetEventArgs)RadDragDropService.BeginDrag(Point, ISupportDrag)RadDragDropService.EndDrag(Point, RadControl)RadDragDropService.EndDrag()RadDragDropService.DoMouseMove(Point)RadDragDropService.CanCommitRadDragDropService.ValidCursorRadDragDropService.InitializedRadDragDropService.InvalidCursorRadDragDropService.UseDefaultPreviewRadDragDropService.DropTargetRadDragDropService.DropLocationRadDragDropService.HintWindowRadDragDropService.PreviewDragDropRadDragDropService.PreviewDragOverRadDragDropService.PreviewDropTargetRadDragDropService.PreviewDragStartRadDragDropService.PreviewDragHintRadService.CanOperate()RadService.Start(object)RadService.Stop(bool)RadService.Pause()RadService.Resume()RadService.OnStarted()RadService.OnStarting(RadServiceStartingEventArgs)RadService.OnStopped()RadService.OnStopping(RadServiceStoppingEventArgs)RadService.IsContextValid(object)RadService.Abort()RadService.PerformResume()RadService.PerformPause()RadService.SetContext(object)RadService.OnEnabledChanged()RadService.ContextRadService.AvailableAtDesignTimeRadService.StateRadService.NameRadService.EnabledRadService.StartingRadService.StartedRadService.StoppingRadService.StoppedRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.GetValue(RadProperty)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.SetValueCore(RadPropertyValue, object, object, ValueSource)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.AddStylePropertySetting(IPropertySetting)RadObject.GetInheritedValue(RadProperty)RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.IsPropertyCancelable(RadPropertyMetadata)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.PerformDispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing...

Constructors

Creates a drag-and-drop service for the specified task board.

C#
public RadTaskBoardDragDropService(RadTaskBoardElement owner)
Parameters:ownerRadTaskBoardElement

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.

C#
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.

C#
protected override bool CanStart(object context)
Parameters:contextobject

The element or object that initiated the drag operation.

Returns:

bool

false for a sited board; otherwise, the result of the base service's check.

Overrides: RadDragDropService.CanStart(object)

Updates the insertion hint and starts or stops board and column scrolling when the pointer reaches their edge zones.

C#
protected override void HandleMouseMove(Point mousePos)
Parameters:mousePosPoint

The current pointer position in screen coordinates.

Overrides: RadDragDropService.HandleMouseMove(Point)

Determines whether the pointer is over a column, task card, or column header that can accept a drop.

C#
protected override bool IsDropTargetValid(ISupportDrop dropTarget)
Parameters:dropTargetISupportDrop

The element being considered as the drop target.

Returns:

bool

true when the target is a task board column, card, or column header.

Overrides: RadDragDropService.IsDropTargetValid(ISupportDrop)

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.

C#
protected override void OnPreviewDragDrop(RadDropEventArgs e)
Parameters:eRadDropEventArgs

The drop event data, including the hit target and drop location.

Overrides: RadDragDropService.OnPreviewDragDrop(RadDropEventArgs)

Marks supported task board elements as valid drop targets and remembers the current target for column edge scrolling.

C#
protected override void OnPreviewDragOver(RadDragOverEventArgs e)
Parameters:eRadDragOverEventArgs

The drag-over event data, including the element under the pointer.

Overrides: RadDragDropService.OnPreviewDragOver(RadDragOverEventArgs)

Advances vertical scrolling in the specified column while a drag remains in its edge-scroll zone.

C#
protected virtual void OnScrollTimerColumnTick(RadTaskBoardColumnElement column)
Parameters:columnRadTaskBoardColumnElement

The column whose scrollbar is advanced.

Advances horizontal board scrolling while a drag remains in the board's edge-scroll zone.

C#
protected virtual void OnScrollTimerOwnerTick()

Restores the dragged item's opacity, stops edge-scroll timers, and releases the insertion-hint window.

C#
protected override void PerformStop()

Overrides: RadDragDropService.PerformStop()

Prepares the drag context, dims the dragged item, calculates its outline offset when the cursor is not centered, and initializes the insertion hint.

C#
protected override bool PrepareContext()
Returns:

bool

The result returned by the base context-preparation method.

Overrides: RadDragDropService.PrepareContext()