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.
Install
| Product | Versions |
|---|---|
| .NET |
README
Syncfusion® ASP.NET Core Gantt Chart Component
Visualize and manage project schedules by displaying tasks, durations, dependencies, and progress in a timeline-based view, ideal for project management applications.
Key Features
- Timeline Task Visualization: Displays tasks as bars along a timeline with configurable time ranges and zoom levels
- Task Dependencies: Supports all 4 dependency types (Finish-to-Start, Start-to-Start, Finish-to-Finish, Start-to-Finish)
- Editing Capabilities: Inline editing, dialog editing, and taskbar drag-and-drop for flexible task updates
- Baseline Comparison: Support for comparing planned vs. actual schedules for performance tracking
- Critical Path Highlighting: Automatic highlighting of the critical path for project risk management
- Resource Allocation: Resource allocation and workload view for balancing team capacity
- Export Support: Export to PDF and Excel formats for reporting and sharing
- Performance: Virtualization for efficiently handling large datasets
- Customization: Custom event templates, progress visualization, and styling
- Accessibility: Full keyboard navigation and screen reader support
Common Setup
1. Install NuGet Package
Install-Package Syncfusion.AspNetCore.Gantt
2. Register Tag Helper
Add to ~/Pages/_ViewImports.cshtml or ~/Views/_ViewImports.cshtml:
@addTagHelper *, Syncfusion.AspNetCore.Gantt
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.Gantt/scripts/sf-gantt.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<GanttTask> GanttData { get; set; }
public void OnGet()
{
GanttData = new List<GanttTask>
{
new GanttTask { TaskID = 1, TaskName = "Project Planning", StartDate = new DateTime(2023, 01, 01), Duration = 5, Progress = 100, ParentID = null },
new GanttTask { TaskID = 2, TaskName = "Requirement Analysis", StartDate = new DateTime(2023, 01, 02), Duration = 3, Progress = 100, ParentID = 1 },
new GanttTask { TaskID = 3, TaskName = "Design", StartDate = new DateTime(2023, 01, 06), Duration = 5, Progress = 50, ParentID = 1 },
new GanttTask { TaskID = 4, TaskName = "Development", StartDate = new DateTime(2023, 01, 12), Duration = 8, Progress = 30, ParentID = null },
new GanttTask { TaskID = 5, TaskName = "Testing", StartDate = new DateTime(2023, 01, 20), Duration = 4, Progress = 0, ParentID = null }
};
}
}
public class GanttTask
{
public int TaskID { get; set; }
public string TaskName { get; set; }
public DateTime StartDate { get; set; }
public int Duration { get; set; }
public int Progress { get; set; }
public int? ParentID { get; set; }
}
Step 2: ~/Pages/Index.cshtml
<ejs-gantt id="Gantt" dataSource="@Model.GanttData" height="450px" parentIdMapping="ParentID">
<e-gantt-columns>
<e-gantt-column field="TaskID" headerText="Task ID" width="80"></e-gantt-column>
<e-gantt-column field="TaskName" headerText="Task Name" width="180"></e-gantt-column>
<e-gantt-column field="StartDate" headerText="Start Date" type="date" format="yMd"></e-gantt-column>
<e-gantt-column field="Duration" headerText="Duration" width="80"></e-gantt-column>
<e-gantt-column field="Progress" headerText="Progress" width="80"></e-gantt-column>
</e-gantt-columns>
</ejs-gantt>
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: Blazor | ASP.NET Core | ASP.NET MVC | JavaScript | Angular | React | Vue
Desktop: WinForms | WPF | WinUI
Learn more at www.syncfusion.com
[email protected] | Toll Free: 1-888-9-DOTNET
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.