Moves pivot fields between the field list and the grid's values, row, column, and filter areas, and handles field removal.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.PivotGrid.dll
Syntax:
public class PivotFieldListDragDropService : RadDragDropService, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IMessageListener
Inheritance: objectDisposableObjectRadObjectRadServiceRadDragDropServicePivotFieldListDragDropService...
Implements:
Inherited Members
Constructors
Initializes the drag service for the specified field list and creates its drop-hint window and cursors.
public PivotFieldListDragDropService(RadPivotFieldList fieldList)
The field list whose view model is updated by drag operations.
Fields
Cursor shown when a field can be moved to the column area.
protected Cursor columnsCursor
Cursor shown when a drag removes a field from its source area.
protected Cursor deleteCursor
Cursor shown when a field can be moved to the filter area.
protected Cursor filterCursor
Cursor shown when a field can be moved to the row area.
protected Cursor rowsCursor
Cursor shown when a field can be moved to the values area.
protected Cursor valuesCursor
Methods
Releases the native icon handles created for the drag cursors.
protected override void DisposeUnmanagedResources()
Overrides:
Marks fields from descriptor areas for removal when dragged outside the field list, except for the values-position field, and updates the drag cursor.
protected override void HandleMouseMove(Point mousePos)
The current mouse position in screen coordinates.
Overrides:
Loads the cursor images used to distinguish field destinations and removal during a drag, falling back to standard cursors if loading fails.
protected virtual void InitializeCursors()
Applies the payload to its selected destination and refreshes the field-list view model.
protected override void OnPreviewDragDrop(RadDropEventArgs e)
The drag-and-drop event data passed to the base service.
Overrides:
Resolves the destination field collection and insertion index, rejects unsupported moves, and updates the drop hint.
protected override void OnPreviewDragOver(RadDragOverEventArgs e)
The event data whose CanDrop value indicates whether the move is allowed.
Overrides:
Creates a drag payload only when the source represents a selectable field.
protected override void PerformStart()
Overrides:
Hides the drop hint and completes source removal, when requested, before disposing the drag payload.
protected override void PerformStop()
Overrides: