Syncfusion.AspNetCore.Gantt
34.1.31
Prefix Reserved
dotnet add package Syncfusion.AspNetCore.Gantt --version 34.1.31
NuGet\Install-Package Syncfusion.AspNetCore.Gantt -Version 34.1.31
<PackageReference Include="Syncfusion.AspNetCore.Gantt" Version="34.1.31" />
<PackageVersion Include="Syncfusion.AspNetCore.Gantt" Version="34.1.31" />
<PackageReference Include="Syncfusion.AspNetCore.Gantt" />
paket add Syncfusion.AspNetCore.Gantt --version 34.1.31
#r "nuget: Syncfusion.AspNetCore.Gantt, 34.1.31"
#:package Syncfusion.AspNetCore.Gantt@34.1.31
#addin nuget:?package=Syncfusion.AspNetCore.Gantt&version=34.1.31
#tool nuget:?package=Syncfusion.AspNetCore.Gantt&version=34.1.31
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
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.Buttons (>= 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.AspNetCore.Layouts (>= 34.1.31)
- Syncfusion.AspNetCore.Navigations (>= 34.1.31)
- Syncfusion.AspNetCore.Popups (>= 34.1.31)
- Syncfusion.AspNetCore.RichTextEditor (>= 34.1.31)
- Syncfusion.AspNetCore.TreeGrid (>= 34.1.31)
- Syncfusion.Licensing (>= 34.1.31)
-
net8.0
- Newtonsoft.Json (>= 13.0.4)
- Syncfusion.AspNetCore.Base (>= 34.1.31)
- Syncfusion.AspNetCore.Buttons (>= 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.AspNetCore.Layouts (>= 34.1.31)
- Syncfusion.AspNetCore.Navigations (>= 34.1.31)
- Syncfusion.AspNetCore.Popups (>= 34.1.31)
- Syncfusion.AspNetCore.RichTextEditor (>= 34.1.31)
- Syncfusion.AspNetCore.TreeGrid (>= 34.1.31)
- Syncfusion.Licensing (>= 34.1.31)
-
net9.0
- Newtonsoft.Json (>= 13.0.4)
- Syncfusion.AspNetCore.Base (>= 34.1.31)
- Syncfusion.AspNetCore.Buttons (>= 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.AspNetCore.Layouts (>= 34.1.31)
- Syncfusion.AspNetCore.Navigations (>= 34.1.31)
- Syncfusion.AspNetCore.Popups (>= 34.1.31)
- Syncfusion.AspNetCore.RichTextEditor (>= 34.1.31)
- Syncfusion.AspNetCore.TreeGrid (>= 34.1.31)
- Syncfusion.Licensing (>= 34.1.31)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.