FieldListViewModel
A class used as ViewModel for setting pivot grouping.
Definition
Namespace:Telerik.WinControls.UI.PivotFieldList
Assembly:Telerik.WinControls.PivotGrid.dll
Syntax:
public sealed class FieldListViewModel : ViewModelBase, INotifyPropertyChanged, IDisposable
Inheritance: objectViewModelBaseFieldListViewModel
Implements:
Inherited Members
Constructors
Initializes a new instance of the FieldListViewModel class.
public FieldListViewModel()
Attaches the view model to control and selects the default dialog factory.
public FieldListViewModel(RadPivotFieldList control)
The field list whose items and settings are represented by this view model.
Properties
Gets or sets the position where groups for the aggregates should be placed based on the DataProvider.
public int AggregatesLevel { get; set; }
Gets or sets a value indicating where the aggregate groups should be positioned based on the DataProvider.
public PivotAxis AggregatesPosition { get; set; }
Gets or sets the AllowSorting property of the associated RadPivotGridElement.
public bool AllowSorting { get; }
Gets the ColumnGroupDescriptions property of the associated RadPivotGridElement.
public ColumnGroupDescriptionCollection ColumnGroupDescriptions { get; }
Gets a FieldCollection that holds all IFields that are used for column labels.
public FieldCollection ColumnLabels { get; }
Gets or sets the ColumnsSubTotalsPosition property of the associated RadPivotGridElement.
public TotalsPos ColumnsSubTotalsPosition { get; }
Gets or sets the underlying IDataProvider.
public IDataProvider DataProvider { get; set; }
Gets or sets the associated provider's deferred-update setting.
public bool DeferUpdates { get; set; }
Before a provider is assigned, the value is cached and applied to the next provider assigned to DataProvider.
DialogsFactory
PivotGridDialogsFactory
Gets or sets the factory used to create dialogs opened by field-list commands.
public PivotGridDialogsFactory DialogsFactory { get; set; }
Gets the field-list control represented by this view model.
public RadPivotFieldList FieldListControl { get; }
Gets a FieldCollection that holds a hierarchy of all IField that may participate in pivot grouping.
public FieldCollection Fields { get; }
Gets a FieldCollection that holds all IFields that are used for filtering.
public FieldCollection Filters { get; }
Gets the RowGroupDescriptions property of the associated RadPivotGridElement.
public RowGroupDescriptionCollection RowGroupDescriptions { get; }
Gets a FieldCollection that holds all IFields that are used for row labels.
public FieldCollection RowLabels { get; }
Gets or sets the RowsSubTotalsPosition of the associated RadPivotGridElement.
public TotalsPos RowsSubTotalsPosition { get; }
Gets a FieldCollection that holds all IFields that are used for aggregation.
public FieldCollection Values { get; }
Methods
Refreshes an assigned provider to apply pending field-list changes when it is not deferring updates.
public void ExecuteUpdate()
Refreshes the provider to apply pending field-list changes, optionally bypassing deferred updates.