Evaluate the Gantt SDK free.Start building today.
Add the Gantt SDK to your app.
Use a package manager to add the Gantt SDK to your application now, or download Syncfusion Studio to browse samples and binaries on your desktop.
Follow these steps to integrate the Blazor Gantt Chart component into an existing Blazor Web App using the Interactive Server render mode.
Install NuGet packages
Open the Package Manager Console (PMC) in Visual Studio or the integrated terminal in VS Code, and run the corresponding command for your IDE.
Install-Package Syncfusion.Blazor.Gantt Install-Package Syncfusion.Blazor.Themes
dotnet add package Syncfusion.Blazor.Gantt dotnet add package Syncfusion.Blazor.Themes
Register Syncfusion® Blazor Service
Register the Syncfusion Blazor service in the Program.cs file after the builder instance is created (the using Syncfusion.Blazor; directive is auto-resolved by the framework).
builder.Services.AddSyncfusionBlazor();
Register Syncfusion license key
Register the Syncfusion license key in the Program.cs file after the AddSyncfusionBlazor() call.
// Register the Syncfusion license
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR_LICENSE_KEY");
Add Theme Stylesheet and Script
Add the Syncfusion theme stylesheet at the end of the <head> section in the Components/App.razor file to apply styling.
<link href="_content/Syncfusion.Blazor.Themes/fluent2.css" rel="stylesheet" />
Add Syncfusion® Blazor Gantt Chart component
Add the Syncfusion® Blazor Gantt Chart component in ~/Components/Pages/Home.razor.
@rendermode InteractiveServer
@using Syncfusion.Blazor.Gantt
<SfGantt DataSource="@TaskCollection" Height="450px" Width="700px">
<GanttTaskFields Id="TaskID" Name="TaskName" StartDate="StartDate" Duration="Duration" Progress="Progress" ParentID="ParentID">
</GanttTaskFields>
</SfGantt>
@code {
public List<TaskModel>? TaskCollection { get; set; }
protected override void OnInitialized()
{
TaskCollection = GetTaskCollection();
}
public class TaskModel
{
public int TaskID { get; set; }
public string? TaskName { get; set; }
public DateTime StartDate { get; set; }
public string? Duration { get; set; }
public int Progress { get; set; }
public int? ParentID { get; set; }
}
private static List<TaskModel> GetTaskCollection()
{
List<TaskModel> Tasks = new List<TaskModel>()
{
new TaskModel() { TaskID = 1, TaskName = "Project initiation", StartDate = new DateTime(2026, 01, 05) },
new TaskModel() { TaskID = 2, TaskName = "Identify Site location", StartDate = new DateTime(2026, 01, 05), Duration = "0", Progress = 30, ParentID = 1, },
new TaskModel() { TaskID = 3, TaskName = "Perform soil test", StartDate = new DateTime(2026, 01, 05), Duration = "4", Progress = 40, ParentID = 1, },
new TaskModel() { TaskID = 4, TaskName = "Soil test approval", StartDate = new DateTime(2026, 01, 05), Duration = "0", Progress = 30, ParentID = 1, },
new TaskModel() { TaskID = 5, TaskName = "Project estimation", StartDate = new DateTime(2026, 01, 06) },
new TaskModel() { TaskID = 6, TaskName = "Develop floor plan for estimation", StartDate = new DateTime(2026, 01, 06), Duration = "3", Progress = 30, ParentID = 5, },
new TaskModel() { TaskID = 7, TaskName = "List materials", StartDate = new DateTime(2026, 01, 06), Duration = "3", Progress = 40, ParentID = 5, },
new TaskModel() { TaskID = 8, TaskName = "Estimation approval", StartDate = new DateTime(2026, 01, 06), Duration = "0", Progress = 30, ParentID = 5, }
};
return Tasks;
}
}
Search a control. Copy its install command.
Search 245 controls across 14 platforms. Each command comes from that control’s getting-started guide, and every package is checked on NuGet, npm, or pub.dev.
Loading controls…
Evaluate faster with your coding agent.
Paste this prompt into GitHub Copilot, Claude Code, Cursor, or any agent. It sets up Syncfusion for your project from ai.syncfusion.com before it writes code.
Set up this project for Syncfusion before generating code. Fetch and follow the official instructions at https://ai.syncfusion.com then report the detected platform, installed skills, MCP status, and any required licensing action.
No key needed to install the skills. The MCP servers use the API key that comes with a free account. Agent setup guides
AI assistants
IDEs
Short, task-first walkthroughs.
Need help getting started?
Explore our resources or reach out to our support team for assistance.
Product Updates
Technical Support
AI Solutions
Syncfusion Studio for your desktop.
One small download. Browse every product, download samples and binaries, and set up your IDE and AI assistant.