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
<PackageReference Include="Syncfusion.AspNetCore.TreeGrid" Version="34.1.31" />
<PackageVersion Include="Syncfusion.AspNetCore.TreeGrid" Version="34.1.31" />
<PackageReference Include="Syncfusion.AspNetCore.TreeGrid" />
paket add Syncfusion.AspNetCore.TreeGrid --version 34.1.31
#r "nuget: Syncfusion.AspNetCore.TreeGrid, 34.1.31"
#:package Syncfusion.AspNetCore.TreeGrid@34.1.31
#addin nuget:?package=Syncfusion.AspNetCore.TreeGrid&version=34.1.31
#tool nuget:?package=Syncfusion.AspNetCore.TreeGrid&version=34.1.31
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: Blazor | ASP.NET Core | ASP.NET MVC | JavaScript | Angular | React | Vue
Desktop: WinForms | WPF | WinUI
Learn more at www.syncfusion.com
sales@syncfusion.com | Toll Free: 1-888-9-DOTNET
| Product | Versions 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. |
-
net10.0
- Newtonsoft.Json (>= 13.0.4)
- Syncfusion.AspNetCore.Base (>= 34.1.31)
- Syncfusion.AspNetCore.Calendars (>= 34.1.31)
- Syncfusion.AspNetCore.DropDowns (>= 34.1.31)
- Syncfusion.AspNetCore.Grid (>= 34.1.31)
- Syncfusion.AspNetCore.Inputs (>= 34.1.31)
- Syncfusion.Licensing (>= 34.1.31)
-
net8.0
- Newtonsoft.Json (>= 13.0.4)
- Syncfusion.AspNetCore.Base (>= 34.1.31)
- Syncfusion.AspNetCore.Calendars (>= 34.1.31)
- Syncfusion.AspNetCore.DropDowns (>= 34.1.31)
- Syncfusion.AspNetCore.Grid (>= 34.1.31)
- Syncfusion.AspNetCore.Inputs (>= 34.1.31)
- Syncfusion.Licensing (>= 34.1.31)
-
net9.0
- Newtonsoft.Json (>= 13.0.4)
- Syncfusion.AspNetCore.Base (>= 34.1.31)
- Syncfusion.AspNetCore.Calendars (>= 34.1.31)
- Syncfusion.AspNetCore.DropDowns (>= 34.1.31)
- Syncfusion.AspNetCore.Grid (>= 34.1.31)
- Syncfusion.AspNetCore.Inputs (>= 34.1.31)
- Syncfusion.Licensing (>= 34.1.31)
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.