Syncfusion.AspNetMvc.PivotView 34.1.31

Prefix Reserved
dotnet add package Syncfusion.AspNetMvc.PivotView --version 34.1.31
                    
NuGet\Install-Package Syncfusion.AspNetMvc.PivotView -Version 34.1.31
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Syncfusion.AspNetMvc.PivotView" Version="34.1.31" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Syncfusion.AspNetMvc.PivotView" Version="34.1.31" />
                    
Directory.Packages.props
<PackageReference Include="Syncfusion.AspNetMvc.PivotView" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Syncfusion.AspNetMvc.PivotView --version 34.1.31
                    
#r "nuget: Syncfusion.AspNetMvc.PivotView, 34.1.31"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Syncfusion.AspNetMvc.PivotView@34.1.31
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Syncfusion.AspNetMvc.PivotView&version=34.1.31
                    
Install as a Cake Addin
#tool nuget:?package=Syncfusion.AspNetMvc.PivotView&version=34.1.31
                    
Install as a Cake Tool

Syncfusion® ASP.NET MVC Pivot Table Component

A powerful business intelligence tool for summarizing and analyzing large datasets using multi-dimensional cross-tabulation with support for OLAP and flat data sources.

Key Features

  • Drag-and-Drop Configuration: Runtime field list for configuring rows, columns, values, and filters without coding
  • Multiple Data Sources: Support for local JSON data, OLAP (SSAS), and remote data sources for flexible data binding
  • Calculated Fields: Create custom fields and aggregations for advanced data analysis
  • Pivot Chart Integration: Visual cross-tabulation with integrated pivot chart for data visualization
  • Performance Optimization: Virtual scrolling, paging, and lazy loading for handling large datasets efficiently
  • Conditional Formatting: Apply formatting rules to cells based on values for highlighting insights
  • Export Capabilities: Export to PDF and Excel formats for reporting and sharing results
  • Data Aggregation: Multiple aggregation types with value formatting options
  • Cell Selection: Advanced cell selection and interaction capabilities
  • Accessibility: Full keyboard navigation and screen reader support

Common Setup

These setup steps are required only once for your application, regardless of which Syncfusion components you use.

1. Install Base NuGet Package

Install-Package Syncfusion.AspNetMvc.PivotView

2. Add Namespace Reference

Edit Web.config under the Views folder and add the Syncfusion.EJ2 namespace:

<namespaces>
    <add namespace="Syncfusion.EJ2"/>
</namespaces>

3. Add Stylesheet & Script References

In your layout file (~/Views/Shared/_Layout.cshtml), add the following in the <head> section:

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>@ViewBag.Title - Syncfusion Application</title>
    
    
    <link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/34.1.31/fluent2.css" />
    
    
    <script src="https://cdn.syncfusion.com/ej2/34.1.31/dist/ej2.min.js"></script>
</head>

4. Register Script Manager

At the end of the <body> tag in your layout file (~/Views/Shared/_Layout.cshtml):

<body>
    @RenderBody()
    
    
    @Html.EJS().ScriptManager()
</body>

Quick Start

Step 1: Add ASP.NET MVC PivotView control

Add the Syncfusion® ASP.NET MVC PivotView control ~/Views/Home/Index.cshtml page:


@Html.EJS().PivotView("PivotGrid").Height("350").DataSourceSettings(dataSourceSettings => dataSourceSettings.DataSource((IEnumerable<object>)ViewBag.DataSource).ExpandAll(true)
    .FormatSettings(formatsettings =>
    {
        formatsettings.Name("Amount").Format("C0").Add();
    }).Rows(rows =>
    {
        rows.Name("Country").Add(); rows.Name("Products").Add();
    }).Columns(columns =>
    {
        columns.Name("Year").Add(); columns.Name("Quarter").Add();
    }).Values(values =>
    {
        values.Name("Amount").Caption("Sold Amount").Add(); values.Name("Sold").Caption("Units Sold").Add();
    })).ShowFieldList(true).Render()

Step 2: Create controller ~/Controllers/HomeController.cs

public class HomeController : Controller
{
    public ActionResult Index()
    {
        var data = PivotDataSource.GetPivotData();
        ViewBag.DataSource = data;
        return View();
    }

    public class PivotData
    {
        public int Sold { get; set; }
        public double Amount { get; set; }
        public string Country { get; set; }
        public string Products { get; set; }
        public string Year { get; set; }
        public string Quarter { get; set; }
    }

    public static class PivotDataSource
    {
        public static List<PivotData> GetPivotData()
        {
            return new List<PivotData>
                {
                    new PivotData { Sold = 31, Amount = 52824, Country = "France", Products = "Mountain Bikes", Year = "FY 2025", Quarter = "Q1" },
                    new PivotData { Sold = 51, Amount = 86904, Country = "France", Products = "Mountain Bikes", Year = "FY 2025", Quarter = "Q2" },
                    new PivotData { Sold = 90, Amount = 153360, Country = "France", Products = "Mountain Bikes", Year = "FY 2025", Quarter = "Q3" },
                    new PivotData { Sold = 25, Amount = 42600, Country = "France", Products = "Mountain Bikes", Year = "FY 2025", Quarter = "Q4" }
                };
        }
    }
}

Step 3: Run the Application

Press Ctrl+F5 to run the application in your browser.

Documentation

Support

License

This is a commercial product and requires a paid license for possession or use. Review the Syncfusion® EULA

About Syncfusion®

Syncfusion® provides 1600+ UI components and frameworks for web, mobile, and desktop development across multiple platforms:

Web:  BlazorASP.NET MVCASP.NET MVCJavaScriptAngularReactVue

Mobile:  FlutterMAUIUWP

Desktop:  WinFormsWPFWinUI

Learn more at www.syncfusion.com

sales@syncfusion.com | Toll Free: 1-888-9-DOTNET

Product Compatible and additional computed target framework versions.
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
34.1.31 38 7/14/2026
34.1.30 81 7/9/2026
34.1.29 105 7/6/2026