ASP.NET Core PivotGridV2 Overview

Telerik UI for ASP.NET Core Ninja image

The PivotGridV2 is part of Telerik UI for ASP.NET Core, a professional grade UI library with 110+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.

The Telerik UI PivotGridV2 HtmlHelper and TagHelper for ASP.NET Core are server-side wrappers for the Kendo UI PivotGridV2 widget. To add the component to your ASP.NET Core application, you can use either.

The PivotGridV2 represents multidimensional data in a cross-tabular format. Compared to the legacy PivotGrid, PivotGridV2 offers a brand new design, and its future-proof architecture allows the implementation of many upcoming features. We recommended using the PivotGridV2 in your new projects, because, at some point in the future, the PivotGridV2 will replace the legacy PivotGrid. For more details about the differences between the PivotGrid and PivotGridV2, refer to the Comparison article.

Basic Configuration

To configure the PivotGridV2 for Ajax binding to an Adventure Works cube that is hosted on, follow the next steps:

  1. Create a new ASP.NET Core application. If you have the Telerik UI for ASP.NET Core Visual Studio Extensions installed, create a Telerik UI for ASP.NET Core application. Name the application KendoPivotGridV2. If you decide not to use the Telerik UI for ASP.NET Core Visual Studio Extensions, follow the steps from the getting started article to add Telerik UI for ASP.NET Core to the application.
  2. Add a PivotGridV2 to the Index View.

            .DataSource(dataSource => dataSource.
                .Columns(columns => {
                .Rows(rows => rows.Add("[Geography].[City]"))
                .Measures(measures => measures.Values(new string[]{"[Measures].[Reseller Freight Cost]"}))
                .Transport(transport => transport
                    .Connection(connection => connection
                        .Catalog("Adventure Works DW 2008R2")
                        .Cube("Adventure Works"))
                    .Read(read => read
        <kendo-pivotconfiguratorv2 name="configurator" sortable="true" filterable="true" height="570">
        <kendo-pivotgridv2 name="pivotgrid" column-width="200" height="570" configurator="#configurator">
            <pivot-datasource type="PivotDataSourceType.Xmla">
                    <pivot-datasource-column name="[Date].[Calendar]" expand="true"></pivot-datasource-column>
                    <pivot-datasource-column name="[Product].[Category]"></pivot-datasource-column>
                    <row name="[Geography].[City]"></row>
                <measures values=@(new string[] {"[Measures].[Reseller Freight Cost]"} )></measures>
                <transport read-url="" datatype="text" content-type="text/xml" type="POST">
                    <connection catalog="Adventure Works DW 2008R2" cube="Adventure Works"></connection>
  3. Build and run the application.

The following image demonstrates the output from the example.

UI for ASP.NET Core PivotGridV2 bound to data

Functionality and Features

Next Steps

See Also

In this article