Handles reordering Details View columns by dragging their header cells.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class DetailListViewDragDropService : RadDragDropService, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IMessageListener
Inheritance: objectDisposableObjectRadObjectRadServiceRadDragDropServiceDetailListViewDragDropService...
Implements:
Inherited Members
Constructors
Initializes the column drag-drop service for a Details View element.
public DetailListViewDragDropService(DetailListViewElement owner)
The Details View element whose columns are reordered.
Methods
Disposes the layered column drag-hint window, if one exists.
protected virtual void DisposeDragHint()
Gets the size required by the column drag hint and header container.
protected virtual Size GetDragHintSize(ISupportDrop iSupportDrop)
The current drop target.
Returns:The drag-hint size in pixels.
Prepares a drag hint when the drop target changes and updates its location.
protected override void HandleMouseMove(Point mousePos)
The pointer position in screen coordinates.
Overrides:
Rejects the dragged column as its own target and otherwise uses the base target validation.
protected override bool IsDropTargetValid(ISupportDrop dropTarget)
The proposed drop target.
Returns:Overrides:
Reorders the dragged column relative to a target Details View cell.
protected override void OnPreviewDragDrop(RadDropEventArgs e)
The drop data, including the target cell and pointer position.
Overrides:
Rejects drop targets whose column belongs to a different Details View.
protected override void OnPreviewDragOver(RadDragOverEventArgs e)
The drag-over event data.
Overrides:
Starts a column drag when the context is a Details View cell element.
protected override void PerformStart()
Overrides:
Releases the column drag hint after the operation stops.
protected override void PerformStop()
Overrides:
Creates the layered window used to display the column drag hint.
protected virtual void PrepareDragHint()
Positions or hides the insertion hint above the column headers.
protected virtual void UpdateDragHintLocation(Point mousePosition)
The pointer position in screen coordinates.