Class
RadPivotFieldList

Represents a field list control for the RadPivotGrid that allows users to configure pivot grid fields by dragging and dropping them between different areas. The field list provides areas for report filters, row labels, column labels, and values, enabling interactive pivot grid configuration.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.PivotGrid.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Data Controls")]
public class RadPivotFieldList : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlUserControlRadPivotFieldList

Implements: IBindableComponentIComponentIContainerControlIDisposableIDropTargetISynchronizeInvokeIWin32Window

Inherited Members UserControl.ValidateChildren()UserControl.ValidateChildren(ValidationConstraints)UserControl.OnCreateControl()UserControl.OnResize(EventArgs)UserControl.OnMouseDown(MouseEventArgs)UserControl.WndProc(ref Message)UserControl.AutoSizeUserControl.AutoSizeModeUserControl.AutoValidateUserControl.BorderStyleUserControl.CreateParamsUserControl.DefaultSizeUserControl.AutoSizeChangedUserControl.AutoValidateChangedUserControl.LoadContainerControl.AdjustFormScrollbars(bool)ContainerControl.OnAutoValidateChanged(EventArgs)ContainerControl.OnFontChanged(EventArgs)ContainerControl.OnLayout(LayoutEventArgs)ContainerControl.OnParentChanged(EventArgs)ContainerControl.PerformAutoScale()ContainerControl.ProcessDialogChar(char)ContainerControl.ProcessDialogKey(Keys)ContainerControl.ProcessCmdKey(ref Message, Keys)ContainerControl.ProcessMnemonic(char)ContainerControl.ProcessTabKey(bool)ContainerControl.Select(bool, bool)ContainerControl.UpdateDefaultButton()ContainerControl.Validate()ContainerControl.Validate(bool)ContainerControl.AutoScaleDimensionsContainerControl.AutoScaleFactorContainerControl.AutoScaleModeContainerControl.BindingContextContainerControl.CanEnableImeContainerControl.ActiveControlContainerControl.CurrentAutoScaleDimensionsContainerControl.ParentFormScrollableControl.ScrollStateAutoScrollingScrollableControl.ScrollStateHScrollVisibleScrollableControl.ScrollStateVScrollVisibleScrollableControl.ScrollStateUserHasScrolledScrollableControl.ScrollStateFullDragScrollableControl.GetScrollState(int)ScrollableControl.OnMouseWheel(MouseEventArgs)ScrollableControl.OnRightToLeftChanged(EventArgs)ScrollableControl.OnPaintBackground(PaintEventArgs)ScrollableControl.OnPaddingChanged(EventArgs)ScrollableControl.OnVisibleChanged(EventArgs)ScrollableControl.ScaleControl(SizeF, BoundsSpecified)ScrollableControl.SetDisplayRectLocation(int, int)ScrollableControl.ScrollControlIntoView(Control)ScrollableControl.ScrollToControl(Control)ScrollableControl.OnScroll(ScrollEventArgs)ScrollableControl.SetAutoScrollMargin(int, int)ScrollableControl.SetScrollState(int, bool)ScrollableControl.AutoScrollScrollableControl.AutoScrollMarginScrollableControl.AutoScrollPositionScrollableControl.AutoScrollMinSizeScrollableControl.DisplayRectangleScrollableControl.HScrollScrollableControl.HorizontalScrollScrollableControl.VScrollScrollableControl.VerticalScrollScrollableControl.ScrollControl.GetAccessibilityObjectById(int)Control.SetAutoSizeMode(AutoSizeMode)Control.GetAutoSizeMode()Control.GetPreferredSize(Size)Control.AccessibilityNotifyClients(AccessibleEvents, int)Control.AccessibilityNotifyClients(AccessibleEvents, int, int)Control.BeginInvoke(Delegate)Control.BeginInvoke(Delegate, params object[])Control.BringToFront()Control.Contains(Control)Control.CreateAccessibilityInstance()Control.CreateControlsInstance()Control.CreateGraphics()Control.CreateHandle()Control.CreateControl()Control.DefWndProc(ref Message)Control.DestroyHandle()Control.DoDragDrop(object, DragDropEffects)Control.DrawToBitmap(Bitmap, Rectangle)Control.EndInvoke(IAsyncResult)Control.FindForm()Control.GetTopLevel()Control.RaiseKeyEvent(object, KeyEventArgs)Control.RaiseMouseEvent(object, MouseEventArgs)Control.Focus()Control.FromChildHandle(IntPtr)Control.FromHandle(IntPtr)Control.GetChildAtPoint(Point, GetChildAtPointSkip)Control.GetChildAtPoint(Point)Control.GetContainerControl()Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)Control.GetNextControl(Control, bool)Control.GetStyle(ControlStyles)Control.Hide()Control.InitLayout()Control.Invalidate(Region)Control.Invalidate(Region, bool)Control.Invalidate()Control.Invalidate(bool)Control.Invalidate(Rectangle)Control.Invalidate(Rectangle, bool)Control.Invoke(Delegate)Control.Invoke(Delegate, params object[])Control.InvokePaint(Control, PaintEventArgs)Control.InvokePaintBackground(Control, PaintEventArgs)Control.IsKeyLocked(Keys)Control.IsInputChar(char)Control.IsInputKey(Keys)Control.IsMnemonic(char, string)Control.LogicalToDeviceUnits(int)Control.LogicalToDeviceUnits(Size)Control.ScaleBitmapLogicalToDevice(ref Bitmap)Control.NotifyInvalidate(Rectangle)Control.InvokeOnClick(Control, EventArgs)Control.OnAutoSizeChanged(EventArgs)Control.OnBackColorChanged(EventArgs)Control.OnBackgroundImageChanged(EventArgs)Control.OnBackgroundImageLayoutChanged(EventArgs)Control.OnBindingContextChanged(EventArgs)Control.OnCausesValidationChanged(EventArgs)Control.OnContextMenuChanged(EventArgs)Control.OnContextMenuStripChanged(EventArgs)Control.OnCursorChanged(EventArgs)Control.OnDockChanged(EventArgs)Control.OnEnabledChanged(EventArgs)Control.OnForeColorChanged(EventArgs)Control.OnNotifyMessage(Message)Control.OnParentBackColorChanged(EventArgs)Control.OnParentBackgroundImageChanged(EventArgs)Control.OnParentBindingContextChanged(EventArgs)Control.OnParentCursorChanged(EventArgs)Control.OnParentEnabledChanged(EventArgs)Control.OnParentFontChanged(EventArgs)Control.OnParentForeColorChanged(EventArgs)Control.OnParentRightToLeftChanged(EventArgs)Control.OnParentVisibleChanged(EventArgs)Control.OnPrint(PaintEventArgs)Control.OnTabIndexChanged(EventArgs)Control.OnTabStopChanged(EventArgs)Control.OnTextChanged(EventArgs)Control.OnClick(EventArgs)Control.OnClientSizeChanged(EventArgs)Control.OnControlAdded(ControlEventArgs)Control.OnControlRemoved(ControlEventArgs)Control.OnHandleCreated(EventArgs)Control.OnLocationChanged(EventArgs)Control.OnHandleDestroyed(EventArgs)Control.OnDoubleClick(EventArgs)Control.OnDragEnter(DragEventArgs)Control.OnDragOver(DragEventArgs)Control.OnDragLeave(EventArgs)Control.OnDragDrop(DragEventArgs)Control.OnGiveFeedback(GiveFeedbackEventArgs)Control.OnEnter(EventArgs)Control.InvokeGotFocus(Control, EventArgs)Control.OnGotFocus(EventArgs)Control.OnHelpRequested(HelpEventArgs)Control.OnInvalidated(InvalidateEventArgs)Control.OnKeyDown(KeyEventArgs)Control.OnKeyPress(KeyPressEventArgs)Control.OnKeyUp(KeyEventArgs)Control.OnLeave(EventArgs)Control.InvokeLostFocus(Control, EventArgs)Control.OnLostFocus(EventArgs)Control.OnMarginChanged(EventArgs)Control.OnMouseDoubleClick(MouseEventArgs)Control.OnMouseClick(MouseEventArgs)Control.OnMouseCaptureChanged(EventArgs)Control.OnMouseEnter(EventArgs)Control.OnMouseLeave(EventArgs)Control.OnDpiChangedBeforeParent(EventArgs)Control.OnDpiChangedAfterParent(EventArgs)Control.OnMouseHover(EventArgs)Control.OnMouseMove(MouseEventArgs)Control.OnMouseUp(MouseEventArgs)Control.OnMove(EventArgs)Control.OnPaint(PaintEventArgs)Control.OnQueryContinueDrag(QueryContinueDragEventArgs)Control.OnRegionChanged(EventArgs)Control.OnPreviewKeyDown(PreviewKeyDownEventArgs)Control.OnSizeChanged(EventArgs)Control.OnChangeUICues(UICuesEventArgs)Control.OnStyleChanged(EventArgs)Control.OnSystemColorsChanged(EventArgs)Control.OnValidating(CancelEventArgs)Control.OnValidated(EventArgs)Control.RescaleConstantsForDpi(int, int)Control.PerformLayout()Control.PerformLayout(Control, string)Control.PointToClient(Point)Control.PointToScreen(Point)Control.PreProcessMessage(ref Message)Control.PreProcessControlMessage(ref Message)Control.ProcessKeyEventArgs(ref Message)Control.ProcessKeyMessage(ref Message)Control.ProcessKeyPreview(ref Message)Control.RaiseDragEvent(object, DragEventArgs)Control.RaisePaintEvent(object, PaintEventArgs)Control.RecreateHandle()Control.RectangleToClient(Rectangle)Control.RectangleToScreen(Rectangle)Control.ReflectMessage(IntPtr, ref Message)Control.Refresh()Control.ResetMouseEventArgs()Control.ResetText()Control.ResumeLayout()Control.ResumeLayout(bool)Control.Scale(SizeF)Control.Select()Control.SelectNextControl(Control, bool, bool, bool, bool)Control.SendToBack()Control.SetBounds(int, int, int, int)Control.SetBounds(int, int, int, int, BoundsSpecified)Control.SetBoundsCore(int, int, int, int, BoundsSpecified)Control.SetClientSizeCore(int, int)Control.SizeFromClientSize(Size)Control.SetStyle(ControlStyles, bool)Control.SetTopLevel(bool)Control.SetVisibleCore(bool)Control.RtlTranslateAlignment(HorizontalAlignment)Control.RtlTranslateAlignment(LeftRightAlignment)Control.RtlTranslateAlignment(ContentAlignment)Control.RtlTranslateHorizontal(HorizontalAlignment)Control.RtlTranslateLeftRight(LeftRightAlignment)Control.RtlTranslateContent(ContentAlignment)Control.Show()Control.SuspendLayout()Control.Update()Control.UpdateBounds()Control.UpdateBounds(int, int, int, int)Control.UpdateBounds(int, int, int, int, int, int)Control.UpdateZOrder()Control.UpdateStyles()Control.OnImeModeChanged(EventArgs)Control.AccessibilityObjectControl.AccessibleDefaultActionDescriptionControl.AccessibleDescriptionControl.AccessibleNameControl.AccessibleRoleControl.AllowDropControl.AnchorControl.AutoScrollOffsetControl.LayoutEngineControl.BackColorControl.BackgroundImageControl.BackgroundImageLayoutControl.BottomControl.BoundsControl.CanFocusControl.CanRaiseEventsControl.CanSelectControl.CaptureControl.CausesValidationControl.CheckForIllegalCrossThreadCallsControl.ClientRectangleControl.ClientSizeControl.CompanyNameControl.ContainsFocusControl.ContextMenuControl.ContextMenuStripControl.ControlsControl.CreatedControl.CursorControl.DataBindingsControl.DefaultBackColorControl.DefaultCursorControl.DefaultFontControl.DefaultForeColorControl.DefaultMarginControl.DefaultMaximumSizeControl.DefaultMinimumSizeControl.DefaultPaddingControl.DeviceDpiControl.IsDisposedControl.DisposingControl.DockControl.DoubleBufferedControl.EnabledControl.FocusedControl.FontControl.FontHeightControl.ForeColorControl.HandleControl.HasChildrenControl.HeightControl.IsHandleCreatedControl.InvokeRequiredControl.IsAccessibleControl.IsMirroredControl.LeftControl.LocationControl.MarginControl.MaximumSizeControl.MinimumSizeControl.ModifierKeysControl.MouseButtonsControl.MousePositionControl.NameControl.ParentControl.ProductNameControl.ProductVersionControl.RecreatingHandleControl.RegionControl.RenderRightToLeftControl.ResizeRedrawControl.RightControl.RightToLeftControl.ScaleChildrenControl.SiteControl.SizeControl.TabIndexControl.TabStopControl.TagControl.TextControl.TopControl.TopLevelControlControl.ShowKeyboardCuesControl.ShowFocusCuesControl.UseWaitCursorControl.VisibleControl.WidthControl.PreferredSizeControl.PaddingControl.DefaultImeModeControl.ImeModeControl.ImeModeBaseControl.PropagatingImeModeControl.BackColorChangedControl.BackgroundImageChangedControl.BackgroundImageLayoutChangedControl.BindingContextChangedControl.CausesValidationChangedControl.ClientSizeChangedControl.ContextMenuChangedControl.ContextMenuStripChangedControl.CursorChangedControl.DockChangedControl.EnabledChangedControl.FontChangedControl.ForeColorChangedControl.LocationChangedControl.MarginChangedControl.RegionChangedControl.RightToLeftChangedControl.SizeChangedControl.TabIndexChangedControl.TabStopChangedControl.TextChangedControl.VisibleChangedControl.ClickControl.ControlAddedControl.ControlRemovedControl.DragDropControl.DragEnterControl.DragOverControl.DragLeaveControl.GiveFeedbackControl.HandleCreatedControl.HandleDestroyedControl.HelpRequestedControl.InvalidatedControl.PaddingChangedControl.PaintControl.QueryContinueDragControl.QueryAccessibilityHelpControl.DoubleClickControl.EnterControl.GotFocusControl.KeyDownControl.KeyPressControl.KeyUpControl.LayoutControl.LeaveControl.LostFocusControl.MouseClickControl.MouseDoubleClickControl.MouseCaptureChangedControl.MouseDownControl.MouseEnterControl.MouseLeaveControl.DpiChangedBeforeParentControl.DpiChangedAfterParentControl.MouseHoverControl.MouseMoveControl.MouseUpControl.MouseWheelControl.MoveControl.PreviewKeyDownControl.ResizeControl.ChangeUICuesControl.StyleChangedControl.SystemColorsChangedControl.ValidatingControl.ValidatedControl.ParentChangedControl.ImeModeChangedComponent.Dispose()Component.GetService(Type)Component.ToString()Component.EventsComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

RadPivotFieldList()

Initializes a new instance of the RadPivotFieldList class.

Declaration

cs-api-definition
public RadPivotFieldList()

Properties

AssociatedPivotGrid

Gets or sets the RadPivotGrid control that this field list is associated with. Setting this property automatically associates the field list with the pivot grid's element, enabling bidirectional field configuration.

Declaration

cs-api-definition
[Browsable(true)]
public RadPivotGrid AssociatedPivotGrid { get; set; }

Property Value

RadPivotGrid

AssociatedPivotGridElement

Gets or sets the RadPivotGridElement that this field list is associated with. When set, the field list will reflect and control the field configuration of the associated pivot grid element.

Declaration

cs-api-definition
[Browsable(false)]
public RadPivotGridElement AssociatedPivotGridElement { get; set; }

Property Value

RadPivotGridElement

ColumnLabelsControl

Gets the RadListControl that displays and manages the column labels area of the pivot field list. Fields dropped into this area will become column headers in the pivot grid.

Declaration

cs-api-definition
[Browsable(false)]
public RadListControl ColumnLabelsControl { get; }

Property Value

RadListControl

DataProvider

Gets the data provider that supplies data to the associated pivot grid. This property returns the data provider from the associated RadPivotGridElement, or null if no pivot grid is associated.

Declaration

cs-api-definition
[Browsable(false)]
public IDataProvider DataProvider { get; }

Property Value

IDataProvider

DeferUpdates

Gets or sets a value indicating whether pivot grid updates should be deferred until explicitly executed. When true, field changes will not immediately update the pivot grid; instead, updates must be triggered manually.

Declaration

cs-api-definition
[Browsable(true)]
public bool DeferUpdates { get; set; }

Property Value

bool

DialogsFactory

Gets or sets the factory that creates dialogs for the pivot field list. This factory is responsible for creating various dialogs used in pivot grid operations.

Declaration

cs-api-definition
[Browsable(false)]
public PivotGridDialogsFactory DialogsFactory { get; set; }

Property Value

PivotGridDialogsFactory

DragDropService

Gets or sets the drag and drop service that handles field dragging operations within the pivot field list. This service manages the drag and drop behavior for moving fields between different areas.

Declaration

cs-api-definition
[Browsable(false)]
public PivotFieldListDragDropService DragDropService { get; set; }

Property Value

PivotFieldListDragDropService

FieldsControl

Gets the RadTreeView control that displays the available fields that can be dragged to different areas of the pivot field list. This tree view shows the hierarchical structure of fields from the data source.

Declaration

cs-api-definition
[Browsable(false)]
public RadTreeView FieldsControl { get; }

Property Value

RadTreeView

ReportFiltersControl

Gets the RadListControl that displays and manages the report filters area of the pivot field list. Fields dropped into this area will become filters that apply to the entire pivot grid.

Declaration

cs-api-definition
[Browsable(false)]
public RadListControl ReportFiltersControl { get; }

Property Value

RadListControl

RowLabelsControl

Gets the RadListControl that displays and manages the row labels area of the pivot field list. Fields dropped into this area will become row headers in the pivot grid.

Declaration

cs-api-definition
[Browsable(false)]
public RadListControl RowLabelsControl { get; }

Property Value

RadListControl

ThemeName

Gets or sets the theme name applied to the pivot field list and all its child controls. Setting this property will recursively apply the theme to all Telerik controls within the field list.

Declaration

cs-api-definition
[Browsable(true)]
public virtual string ThemeName { get; set; }

Property Value

string

ValuesControl

Gets the RadListControl that displays and manages the values area of the pivot field list. Fields dropped into this area will become aggregated values in the pivot grid cells.

Declaration

cs-api-definition
[Browsable(false)]
public RadListControl ValuesControl { get; }

Property Value

RadListControl

ViewModel

Gets the view model that manages the data and logic for the pivot field list. The view model contains the collections for different field areas and handles field operations.

Declaration

cs-api-definition
[Browsable(false)]
public FieldListViewModel ViewModel { get; }

Property Value

FieldListViewModel

Methods

Dispose(bool)

Clean up any resources being used.

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

true if managed resources should be disposed; otherwise, false.

Overrides ContainerControl.Dispose(bool)

GetImageForRole(IField)

Gets the appropriate image icon for the specified field based on its role in the pivot structure. Different field roles (Dimension, Folder, Kpi, Measure, etc.) are represented by different icons.

Declaration

cs-api-definition
protected virtual Image GetImageForRole(IField field)

Parameters

field

IField

The field for which to retrieve the role-specific image.

Returns

Image

An Image representing the field's role, or null if the field has no composite role or an unknown role.

InitializeText()

Initializes the localized text for all UI elements in the pivot field list using the current localization provider. This method should be called when the localization settings change or when the control is first created.

Declaration

cs-api-definition
public void InitializeText()

OnDataProviderChanged()

Called when the data provider changes. This method synchronizes the view model's data provider with the current data provider and notifies the view model of the change to refresh the field list accordingly.

Declaration

cs-api-definition
protected virtual void OnDataProviderChanged()

OnLoad(EventArgs)

Raises the Load event and performs additional initialization based on the current theme. This method handles special positioning adjustments for Metro Touch and Material themes.

Declaration

cs-api-definition
protected override void OnLoad(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

Overrides UserControl.OnLoad(EventArgs)

UpdateFieldListsPosition()

Updates the position and size of the field list panels to distribute them evenly within the available space. This method calculates and sets the bounds for all four field areas (report filters, column labels, row labels, and values).

Declaration

cs-api-definition
protected virtual void UpdateFieldListsPosition()