corelibraries-403809-devexpress-pivot-grid-core-library-pivot-grid-modes-olap-mode.md
Pivot Grid connects to data contained in a cube deployed on an OLAP server and delegates data-aware operations (summarization, grouping, and so on) to the server side. The OLAP data source does not reload/recalculate data on each request. The data source caches data and calculation results, and returns only the requested slice. Use OLAP binding mode to process large amounts of data.
Refer to the following article for more information about Pivot Grid’s performance recommendations: Pivot Grid Performance.
Note
OLAP is not supported when the Pivot Grid uses the Optimized calculation engine because data is calculated on the client side.
Pivot Grid supports the following data providers used to establish a connection to OLAP cubes:
OLE DB for OLAP - A native provider for Analysis Services database connections.
ADOMD.NET - A Microsoft .NET Framework data provider designed to communicate with Microsoft SQL Server Analysis Services. ADOMD.NET uses the XML for Analysis protocol to communicate with analytical data sources. This provider uses TCP/IP or HTTP connections to transmit and receive SOAP requests and responses that are compliant with the XML for Analysis specification.
XMLA - Allows you to connect to an OLAP cube over HTTP protocol. This method does not require any data access libraries or data providers to be installed on the client system.
To specify the required data provider, use one of the following properties:
| WinForms | WPF | ASP.NET Web Forms |
|---|---|---|
| PivotGridControl.OlapDataProvider | PivotGridControl.OLAPDataProvider | ASPxPivotGrid.OLAPDataProvider |
To use the OLE DB and ADOMD.NET providers, Pivot Grid requires the Microsoft Analysis Services OLE DB and Microsoft ADOMD.NET providers on the web server. Refer to the following topic for more information: Data providers used for Analysis Services connections.
The following limitations are in effect when you use OLE DB and ADOMD.NET providers:
The following OLAP servers are supported:
Note
The following features have limitations in OLAP mode:
You should handle one of the following events to apply custom sorting:
| WinForms | WPF | ASP.NET Web Forms |
|---|---|---|
| PivotGridControl.CustomServerModeSort | PivotGridControl.CustomServerModeSort | ASPxPivotGrid.CustomServerModeSort |
The PivotGridFieldBase.DisplayFolder property used to manage User Folders does not allow you to edit the dimension root folders. Specify the following properties for the newly created field to place it in the OLAP field tree displayed in the Customization form:
The following Pivot Grid features are not supported in OLAP mode:
The following table contains platform-specific help topics that illustrate the features listed above:
When the ADOMD.NET data provider (specified by the OLAPDataProvider property) connects to an OLAP data source, the provider requests the value and formatted text from the OLAP server’s cube. This information includes a format string and the culture information.
Note
If the OLAP server does not include culture information, the client’s culture settings are used to format the value (except currency settings). The client’s culture settings are also used if you use the PivotGridFieldBase.CellFormat property to specify the format. To use different culture settings to format values, handle one of the following events:
| WinForms | WPF | ASP.NET Web Forms |
|---|---|---|
| PivotGridControl.CustomCellDisplayText | PivotGridControl.CustomCellDisplayText | ASPxPivotGrid.CustomCellDisplayText |
Refer to the following platform-specific topics for more information on how to connect Pivot Grid to an OLAP database: