The PivotGrid component supports OLAP services (Microsoft SQL Server Analysis Services). This demo shows how to use a remote OLAP cube as the PivotGrid's data source.
Use XmlaStore to connect your component to an OLAP storage. Specify the following properties to configure it:
The OLAP server's URL.
The initial catalog that contains the OLAP cube.
The name of the OLAP cube to use from the catalog.
Pass the XmlaStore to the store property of the PivotGridDataSource component. Assign the component to the PivotGrid's dataSource property.
To display data in the PivotGrid, assign an array to the fields property. Each object in this array configures a single pivot grid field. Assign a field name to the dataField property to populate the pivot grid field with data.
You can distribute fields between four different areas: row, column, filter, and data. To specify the area, set the area property. Add measures to the "data" area and dimensions to other areas. Fields that do not belong to any area are displayed in the field chooser.