Provides a dialog for adding available fields to a pivot grid's data, row, column, and filter areas.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.PivotGrid.dll
Syntax:
public class PivotFieldChooserForm : RadForm, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IComponentTreeHandler, ILayoutHandler, ISupportInitializeNotification, ISupportInitialize, INotifyPropertyChanged, IAnalyticsProvider, ISupportRootUIAutomation
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlFormRadFormControlBaseRadFormPivotFieldChooserForm...
Implements:
Inherited Members
Constructors
Initializes the chooser without an associated grid.
public PivotFieldChooserForm()
Initializes the chooser for the specified grid and includes its filter area when that area is enabled.
public PivotFieldChooserForm(RadPivotGridElement pivotGridElement)
The grid whose available fields and descriptor areas are shown.
Fields
protected RadDropDownList dropDownDestinationArea
protected RadLabel labelFields
protected RadListControl listAvailableFields
Properties
Gets the grid whose field descriptions are edited, or null when the form was created without a grid.
public RadPivotGridElement PivotGridElement { get; }
Methods
Recursively adds the current node and its descendants when ShouldAddNode(ContainerNode) accepts them.
protected virtual void AddToList(ContainerNode current)
The field-information tree node to examine.
Clean up any resources being used.
protected override void Dispose(bool disposing)
true if managed resources should be disposed; otherwise, false.
Overrides:
Refreshes the localized text used by the chooser's labels, destination list, button, and title.
public void InitializeText()
Adds the selected field description to the destination area chosen in the dialog.
protected virtual void OnButtonAddClick()
Binds the available-field list and applies theme-specific layout adjustments when the form is loaded.
protected override void OnLoad(EventArgs e)
The event data for the load operation.
Overrides:
Determines whether a field-information node is not already used by a row, column, aggregate, or filter description.
protected virtual bool ShouldAddNode(ContainerNode current)
The node to check.
Returns:true when the node is a field and its unique name is not already assigned; otherwise, false.
Rebuilds the available-field list from the grid's field information, excluding fields already assigned to an area.
public virtual void UpdateAvailableFields()