Class RadPivotGrid
RadPivotGrid is a control which provides functionality similar to the functionality of PivotTables in MS Excel. It aggregates large chunks of data and displays them in a human readable way.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.PivotGrid.dll
Syntax
[TelerikToolboxCategory("Data Controls")]
public class RadPivotGrid : RadControl, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider, IPrintable, IChartDataProvider
Constructors
RadPivotGrid()
Properties
AggregateDescriptions
A collection of Property
Declaration
public AggregateDescriptionsCollection AggregateDescriptions { get; }
Property Value
AggregatesLevel
Gets or sets the depth of the Aggregates groups among the other groups when more than one aggregate is used.
Declaration
public int AggregatesLevel { get; set; }
Property Value
System.
|
AggregatesPosition
Gets or sets the axis of the Aggregates groups when more than one aggregate is used.
Declaration
public PivotAxis AggregatesPosition { get; set; }
Property Value
AllowContextMenu
Gets or sets a value indicating whether the built-in context menu is enabled.
Declaration
public bool AllowContextMenu { get; set; }
Property Value
System.
|
AllowDefaultScreenTips
Gets or sets a value indicating whether the built-in screen tips are enabled.
Declaration
public bool AllowDefaultScreenTips { get; set; }
Property Value
System.
|
AllowFieldsDragDrop
Gets or sets a value indicating whether the fields can be reorganized via drag and drop.
Declaration
public bool AllowFieldsDragDrop { get; set; }
Property Value
System.
|
AllowGroupFiltering
Gets or sets a value indicating whether Group Filtering is enabled.
Declaration
public bool AllowGroupFiltering { get; set; }
Property Value
System.
|
AllowHorizontalResize
Gets or sets a value indicating whether the user is able to resize columns.
Declaration
public bool AllowHorizontalResize { get; set; }
Property Value
System.
|
AllowSelection
Gets or sets a value indicating whether the user is able to select cells.
Declaration
public bool AllowSelection { get; set; }
Property Value
System.
|
AllowSorting
Gets or sets a value indicating whether the user is able to sort the group labels.
Declaration
public bool AllowSorting { get; set; }
Property Value
System.
|
AllowVerticalResize
Gets or sets a value indicating whether the user is able to resize rows.
Declaration
public bool AllowVerticalResize { get; set; }
Property Value
System.
|
AutoExpandColumnHeaders
Gets or sets a value indicating whether the created column groups should be initially expanded.
Declaration
public bool AutoExpandColumnHeaders { get; set; }
Property Value
System.
|
AutoExpandRowHeaders
Gets or sets a value indicating whether the newly created row groups should be initially expanded.
Declaration
public bool AutoExpandRowHeaders { get; set; }
Property Value
System.
|
AutoSize
Gets or sets whether the edit control is auto-sized
Declaration
public override bool AutoSize { get; set; }
Property Value
System.
|
Overrides
BackColor
RadPivotGrid consists of multiple visual elements and separate settings are provided to customize their appearance. Current BackColor property might be ignored.
Declaration
public override Color BackColor { get; set; }
Property Value
System.
|
Overrides
ChartDataProvider
Gets or sets the chart data provider.
Declaration
public PivotGridChartDataProvider ChartDataProvider { get; set; }
Property Value
Pivot The chart data provider. |
ColumnGrandTotalsPosition
Gets or sets the position of the GrandTotal column in the Columns axis.
Declaration
public TotalsPos ColumnGrandTotalsPosition { get; set; }
Property Value
ColumnGroupDescriptions
A collection of Property
Declaration
public ColumnGroupDescriptionCollection ColumnGroupDescriptions { get; }
Property Value
ColumnGroupsExpandBehavior
Gets or sets the behavior that will set the expand or collapse state for column IGroups.
Declaration
public IItemExpandBehavior<ExpandBehaviorParameters> ColumnGroupsExpandBehavior { get; set; }
Property Value
ColumnHeaderHeight
Gets or sets the height of the column headers area.
Declaration
public int ColumnHeaderHeight { get; set; }
Property Value
System.
|
ColumnHeadersLayout
Gets or sets the layout type of the column headers.
Declaration
public PivotLayout ColumnHeadersLayout { get; set; }
Property Value
ColumnsSubTotalsPosition
Gets or sets the position of the SubTotal columns in the Columns axis.
Declaration
public TotalsPos ColumnsSubTotalsPosition { get; set; }
Property Value
ColumnWidth
Gets or sets the default column width for all columns.
Declaration
public int ColumnWidth { get; set; }
Property Value
System.
|
DataMember
Gets or sets the name of the list or table in the data source for which RadPivotGrid is displaying aggregated data.
Declaration
public string DataMember { get; set; }
Property Value
System.
|
DataProvider
Gets or sets the IData
Declaration
public IDataProvider DataProvider { get; set; }
Property Value
DataSource
Gets or sets the data source for which RadPivotGrid is displaying aggregated data.
Declaration
public object DataSource { get; set; }
Property Value
System.
|
DefaultSize
Gets the default size of the control.
Declaration
protected override Size DefaultSize { get; }
Property Value
System. The default System. |
DialogsFactory
Gets or sets the dialogs factory.
Declaration
public PivotGridDialogsFactory DialogsFactory { get; set; }
Property Value
Pivot The dialogs factory. |
EmptyValueString
Gets or sets the string that will appears on cells that do not have a value.
Declaration
public string EmptyValueString { get; set; }
Property Value
System.
|
ErrorString
Gets or sets the string that will appears on cells for which an error has occured during calculation.
Declaration
public string ErrorString { get; set; }
Property Value
System.
|
FilterAreaHeight
Gets or sets the height of the report filters area.
Declaration
public int FilterAreaHeight { get; set; }
Property Value
System.
|
FilterDescriptions
A collection of Property
Declaration
public FilterDescriptionsCollection FilterDescriptions { get; }
Property Value
ForeColor
RadPivotGrid consists of multiple visual elements and separate settings are provided to customize their appearance. Current ForeColor property might be ignored.
Declaration
public override Color ForeColor { get; set; }
Property Value
System.
|
Overrides
LayoutState
Gets or sets an object which holds the state of the resized and the collapsed rows and columns. Setting the object will apply the state and will update the layout.
Declaration
public PivotLayoutState LayoutState { get; set; }
Property Value
PivotGridElement
Gets the pivot grid element.
Declaration
public RadPivotGridElement PivotGridElement { get; }
Property Value
Rad The pivot grid element. |
PrintStyle
Gets or sets the Pivot
Declaration
public PivotGridPrintStyle PrintStyle { get; set; }
Property Value
RowGrandTotalsPosition
Gets or sets the position of the GrandTotal row in the Rows axis.
Declaration
public TotalsPos RowGrandTotalsPosition { get; set; }
Property Value
RowGroupDescriptions
A collection of Property
Declaration
public RowGroupDescriptionCollection RowGroupDescriptions { get; }
Property Value
RowGroupsExpandBehavior
Gets or sets the behavior that will set the expand or collapse state for row IGroups.
Declaration
public IItemExpandBehavior<ExpandBehaviorParameters> RowGroupsExpandBehavior { get; set; }
Property Value
RowHeadersLayout
Gets or sets the layout type of the row headers.
Declaration
public PivotLayout RowHeadersLayout { get; set; }
Property Value
RowHeight
Gets or sets the default row height for all rows.
Declaration
public int RowHeight { get; set; }
Property Value
System.
|
RowsSubTotalsPosition
Gets or sets the position of the SubTotal rows in the Rows axis.
Declaration
public TotalsPos RowsSubTotalsPosition { get; set; }
Property Value
ShowFilterArea
Gets or sets a value indicating whether the Report Filters area should be displayed.
Declaration
public bool ShowFilterArea { get; set; }
Property Value
System.
|
Text
This property is not relevant for this class.
Declaration
public override string Text { get; set; }
Property Value
System.
|
Overrides
XmlSerializationInfo
Gets the serialization info for RadPivotGrid used by Save/Load loyout methods to persist grid settings to/from XML. By default or when set to null the ComponentXmlSerializationInfo provided by GetDefaultXmlSerializationInfo() will be used.
Declaration
public ComponentXmlSerializationInfo XmlSerializationInfo { get; set; }
Property Value
Methods
BeginInit()
Suspends layout during initialization.
Declaration
public override void BeginInit()
Overrides
BeginUpdate()
Puts RadPivotGrid in update mode and suspends refreshing the view.
Declaration
public void BeginUpdate()
CreateChildItems(RadElement)
Creates the child items.
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
Rad The parent. |
Overrides
CreatePivotGridElement()
Creates the pivot grid element.
Declaration
protected virtual RadPivotGridElement CreatePivotGridElement()
Returns
CreateXmlSerializer(ComponentXmlSerializationInfo)
Creates the XML serializer.
Declaration
protected virtual ComponentXmlSerializer CreateXmlSerializer(ComponentXmlSerializationInfo info)
Parameters
Component The info. |
Returns
EndInit()
EndUpdate()
Ends the update mode and refreshes the view.
Declaration
public void EndUpdate()
GetDefaultXmlSerializationInfo()
Gets the default serialization info for RadPivotGrid used by Save/Load loyout methods to persist grid settings to/from XML.
Declaration
protected virtual ComponentXmlSerializationInfo GetDefaultXmlSerializationInfo()
Returns
Component The default serialization info. |
IsInputKey(Keys)
Determines whether the specified key is a regular input key or a special key that requires preprocessing.
Declaration
protected override bool IsInputKey(Keys keyData)
Parameters
System. One of the System. |
Returns
System. true if the specified key is a regular input key; otherwise, false. |
Overrides
LoadLayout(Stream)
Loads RadPivotGrid properties, sub-objects and their properties from XML stream, using the serialization information provided by the Xml
Declaration
public virtual void LoadLayout(Stream stream)
Parameters
System.
|
LoadLayout(String)
Loads RadPivotGrid properties, sub-objects and their properties from XML file, using the serialization information provided by the Xml
Declaration
public virtual void LoadLayout(string fileName)
Parameters
System.
|
LoadLayout(XmlReader)
Loads RadPivotGrid properties, sub-objects and their properties from XML reader, using the serialization information provided by the Xml
Declaration
public virtual void LoadLayout(XmlReader xmlReader)
Parameters
System.
|
OnKeyDown(KeyEventArgs)
Raises the System.
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
System. A System. |
Overrides
OnLostFocus(EventArgs)
Raises the System.
Declaration
protected override void OnLostFocus(EventArgs e)
Parameters
System. An System. |
Overrides
OnMouseDown(MouseEventArgs)
Raises the System.
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System. A System. |
Overrides
OnMouseMove(MouseEventArgs)
Raises the System.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System. A System. |
Overrides
OnMouseUp(MouseEventArgs)
Raises the Mouse
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
System. The System. |
Overrides
OnMouseWheel(MouseEventArgs)
Raises the System.
Declaration
protected override void OnMouseWheel(MouseEventArgs e)
Parameters
System. A System. |
Overrides
OnScreenTipNeeded(Object, ScreenTipNeededEventArgs)
Called when the screen tip is needed.
Declaration
protected override void OnScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)
Parameters
System. The sender. |
Screen The Screen |
Overrides
Print()
Print(Boolean)
Directly prints the Rad
Declaration
public virtual void Print(bool showPrinterSettings)
Parameters
System. Indicates whether printer settings dialog should be shown. |
Print(Boolean, RadPrintDocument)
Directly prints the Rad
Declaration
public virtual void Print(bool showPrinterSettings, RadPrintDocument document)
Parameters
System. Indicates whether printer settings dialog should be shown. |
Rad As instance of Rad |
PrintPreview()
Shows a Rad
Declaration
public virtual void PrintPreview()
PrintPreview(RadPrintDocument)
Shows a Rad
Declaration
public virtual void PrintPreview(RadPrintDocument document)
Parameters
Rad As instance of Rad |
ReloadData()
Recalculated the displayed information and refreshes the view.
Declaration
public void ReloadData()
SaveLayout(Stream)
Stores to a stream RadPivotGrid properties, sub-objects and their properties in XML format, using the serialization information provided by the Xml
Declaration
public virtual void SaveLayout(Stream stream)
Parameters
System.
|
SaveLayout(String)
Stores to a file RadPivotGrid properties, sub-objects and their properties in XML format, using the serialization information provided by the Xml
Declaration
public virtual void SaveLayout(string fileName)
Parameters
System.
|
SaveLayout(XmlWriter)
Stores RadPivotGrid properties, sub-objects and their properties in XML format, using the serialization information provided by the Xml
Declaration
public virtual void SaveLayout(XmlWriter xmlWriter)
Parameters
System. XmlWriter to use by the built-in serializer |
ShowFieldList()
Shows the Pivot
Declaration
public void ShowFieldList()
Events
AggregateDescriptorElementCreating
Fires when an aggregate descriptor element is being created. Allows for replacing it with a custom element.
Declaration
public event AggregateDescriptorElementCreatingEventHandler AggregateDescriptorElementCreating
Event Type
AggregatesPositionElementCreating
Fires when the aggregate position element is being created. Allows for replacing it with a custom element.
Declaration
public event AggregatesPositionElementCreatingEventHandler AggregatesPositionElementCreating
Event Type
CellCreating
Fires when a cell element is being created. Allows for replacing the default elements with custom ones.
Declaration
public event PivotCellCreatingEventHandler CellCreating
Event Type
CellFormatting
Fires when a cell element is updated. Allows for customizing the appearance of the cells.
Declaration
public event PivotCellEventHandler CellFormatting
Event Type
DataProviderChanged
Fires when the DataProvider property has changed.
Declaration
public event DataProviderChangedEventHandler DataProviderChanged
Event Type
FilterDescriptorElementCreating
Fires when a filter descriptor element is being created. Allows for replacing it with a custom element.
Declaration
public event FilterDescriptorElementCreatingEventHandler FilterDescriptorElementCreating
Event Type
GroupDescriptorElementCreating
Fires when a group descriptor element is being created. Allows for replacing it with a custom element.
Declaration
public event GroupDescriptorElementCreatingEventHandler GroupDescriptorElementCreating
Event Type
GroupElementCreating
Fires when a group element is being created. Allows for replacing the default group elements.
Declaration
public event PivotGroupElementCreatingEventHandler GroupElementCreating
Event Type
GroupElementFormatting
Fires when a group element is updated. Allows for customizing its appearance.
Declaration
public event PivotGroupElementEventHandler GroupElementFormatting
Event Type
GroupExpandedChanged
Fires when a group is expanded or collapsed.
Declaration
public event PivotGroupEventHandler GroupExpandedChanged
Event Type
PrintElementFormatting
Fires when a print element is being prepared for painting.
Declaration
public event PrintElementEventHandler PrintElementFormatting
Event Type
PrintElementPaint
Fires when the print element has been painted. Allows for adding custom painting.
Declaration
public event PrintElementPaintEventHandler PrintElementPaint
Event Type
RowCreating
Fires when a row element is being created. Allows for replacing the default elements with custom ones.
Declaration
public event PivotRowCreatingEventHandler RowCreating
Event Type
RowFormatting
Fires when a row element is updated.
Declaration
public event PivotRowEventHandler RowFormatting
Event Type
SelectionChanged
Fires when the selection in RadPivotGrid has changed.
Declaration
public event EventHandler SelectionChanged
Event Type
System.
|
UpdateCompleted
Fires when the data provider has finished building the data and the UI was updated.
Declaration
public event EventHandler UpdateCompleted
Event Type
System.
|
Explicit Interface Implementations
IChartDataProvider.SetChartView(ChartView)
Declaration
void IChartDataProvider.SetChartView(ChartView chartView)
Parameters
Chart
|
Implements
IChartDataProvider.UpdateChartData()
Declaration
void IChartDataProvider.UpdateChartData()
Implements
IPrintable.BeginPrint(RadPrintDocument, PrintEventArgs)
Declaration
int IPrintable.BeginPrint(RadPrintDocument sender, PrintEventArgs args)
Parameters
Rad
|
System.
|
Returns
System.
|
Implements
IPrintable.EndPrint(RadPrintDocument, PrintEventArgs)
Declaration
bool IPrintable.EndPrint(RadPrintDocument sender, PrintEventArgs args)
Parameters
Rad
|
System.
|
Returns
System.
|
Implements
IPrintable.GetSettingsDialog(RadPrintDocument)
Declaration
Form IPrintable.GetSettingsDialog(RadPrintDocument document)
Parameters
Rad
|
Returns
System.
|
Implements
IPrintable.PrintPage(Int32, RadPrintDocument, PrintPageEventArgs)
Declaration
bool IPrintable.PrintPage(int pageNumber, RadPrintDocument sender, PrintPageEventArgs args)
Parameters
System.
|
Rad
|
System.
|
Returns
System.
|