New to Telerik UI for WinFormsStart a free 30-day trial

A IField payload used in drag operations between the RadPivotFieldList areas.

Definition

Namespace:Telerik.WinControls.UI.PivotFieldList

Assembly:Telerik.WinControls.PivotGrid.dll

Syntax:

C#
public sealed class FieldPayload : ViewModelBase, INotifyPropertyChanged, IDisposable

Inheritance: objectViewModelBaseFieldPayload

Implements: IDisposableINotifyPropertyChanged

Inherited Members ViewModelBase.Dispose()ViewModelBase.PropertyChanged

Constructors

Initializes a new instance of the FieldPayload class.

C#
public FieldPayload(IField field)
Parameters:fieldIField

Properties

Gets the allowed DragDropEffects.

C#
public DragDropEffects AllowedEffects { get; }

Gets the an FieldDragAction that identifies the expected outcome if drop occurs with the current settings.

C#
public FieldDragAction DragAction { get; }

Gets the IField this payload carries.

C#
public IField DraggedField { get; }

Gets or sets a value that indicates if the DraggedField should be removed upon drag completion.

C#
public bool RemoveFromSource { get; set; }

Methods

Call to notify the drag and drop did drop. Call this method once to apply the DragAction.

C#
public void OnDrop()

Call to notify the drag and drop did drop complete. Call this method once to apply the DragAction.

C#
public void OnDropComplete()

Set the potential destination for the DraggedField.

C#
public void SetDestination(FieldCollection destinationCollection, int index)
Parameters:destinationCollectionFieldCollection

The destination FieldCollection.

indexint

The destination index.

Set the potential destination for the DraggedField.

C#
public void SetDestination(FieldCollection destinationCollection)
Parameters:destinationCollectionFieldCollection

The destination FieldCollection.