Syncfusion.AspNetCore.TreeGrid 34.1.31

Prefix Reserved
dotnet add package Syncfusion.AspNetCore.TreeGrid --version 34.1.31
                    
NuGet\Install-Package Syncfusion.AspNetCore.TreeGrid -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.AspNetCore.TreeGrid" Version="34.1.31" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Syncfusion.AspNetCore.TreeGrid" Version="34.1.31" />
                    
Directory.Packages.props
<PackageReference Include="Syncfusion.AspNetCore.TreeGrid" />
                    
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.AspNetCore.TreeGrid --version 34.1.31
                    
#r "nuget: Syncfusion.AspNetCore.TreeGrid, 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.AspNetCore.TreeGrid@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.AspNetCore.TreeGrid&version=34.1.31
                    
Install as a Cake Addin
#tool nuget:?package=Syncfusion.AspNetCore.TreeGrid&version=34.1.31
                    
Install as a Cake Tool

Syncfusion® ASP.NET Core TreeGrid Component

Displays hierarchical (parent-child) data in a grid layout with expand/collapse capability, combining DataGrid features with tree visualization.

Key Features

  • Hierarchical Data Display: Renders hierarchical data with expandable/collapsible rows for parent-child relationships
  • Multiple Data Models: Supports self-referential and nested data models for flexible hierarchy representation
  • Data Operations: Sorting, filtering, and searching across hierarchical data with multi-level support
  • Editing Capabilities: Inline, dialog, and batch editing modes for updating hierarchical data
  • Column Management: Column resizing, reordering, freezing, hiding, and auto-sizing
  • Performance: Virtual scrolling for efficiently handling large tree datasets
  • Aggregations: Summary rows at parent and child levels for data aggregation
  • Export Support: Export to Excel, CSV, and PDF formats
  • Accessibility: Full keyboard navigation and screen reader support

Common Setup

1. Install NuGet Package

Install-Package Syncfusion.AspNetCore.TreeGrid

2. Register Tag Helper

Add to ~/Pages/_ViewImports.cshtml or ~/Views/_ViewImports.cshtml:

@addTagHelper *, Syncfusion.AspNetCore.TreeGrid

3. Add Stylesheet & Script References

In your layout file:

<head>
    <link rel="stylesheet" href="_content/Syncfusion.AspNetCore.Themes/styles/fluent2.css" />
    <script src="_content/Syncfusion.AspNetCore.TreeGrid/scripts/sf-treegrid.min.js"></script>
</head>

4. Register Script Manager

<ejs-scripts></ejs-scripts>

Quick Start

Step 1: ~/Pages/Index.cshtml.cs

public class IndexModel : PageModel
{
    public List<TaskData> TreeGridData { get; set; }

    public void OnGet()
    {
        TreeGridData = new List<TaskData>
        {
            new TaskData { TaskID = 1, TaskName = "Planning", Duration = 5, ParentID = null, IsParent = true },
            new TaskData { TaskID = 2, TaskName = "Design", Duration = 3, ParentID = 1, IsParent = false },
            new TaskData { TaskID = 3, TaskName = "Development", Duration = 8, ParentID = null, IsParent = true },
            new TaskData { TaskID = 4, TaskName = "Frontend", Duration = 5, ParentID = 3, IsParent = false },
            new TaskData { TaskID = 5, TaskName = "Backend", Duration = 6, ParentID = 3, IsParent = false }
        };
    }
}

public class TaskData
{
    public int TaskID { get; set; }
    public string TaskName { get; set; }
    public int Duration { get; set; }
    public int? ParentID { get; set; }
    public bool IsParent { get; set; }
}

Step 2: ~/Pages/Index.cshtml

<ejs-treegrid id="TreeGrid" dataSource="@Model.TreeGridData" idMapping="TaskID" parentIdMapping="ParentID" hasChildMapping="IsParent">
    <e-treegrid-columns>
        <e-treegrid-column field="TaskID" headerText="Task ID" width="100"></e-treegrid-column>
        <e-treegrid-column field="TaskName" headerText="Task Name" width="150"></e-treegrid-column>
        <e-treegrid-column field="Duration" headerText="Duration (Days)" width="100"></e-treegrid-column>
    </e-treegrid-columns>
</ejs-treegrid>

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 CoreASP.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 net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Syncfusion.AspNetCore.TreeGrid:

Package Downloads
Syncfusion.AspNetCore.Gantt

Syncfusion® ASP.NET Core Gantt Chart control is a project management tool for visualizing and managing project schedules. It supports features like task dependencies, critical path, baseline, resource allocation, milestones, task labels, zooming, timeline views (day, week, month, year), drag-and-drop task scheduling, editing, filtering, sorting, and exporting to PDF and Excel. It is ideal for project planning, resource management, and timeline visualization in enterprise ASP.NET Core applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
34.1.31 37 7/14/2026
34.1.30 60 7/9/2026
34.1.29 136 7/6/2026