Gantt chart
GanttControlPlan a project as a task list with a timeline users edit by dragging bars.
Overview
GanttControl is a Blazor Gantt chart: a task list beside a timeline, with nested tasks, predecessor arrows and progress on each bar. Use it for project plans: users drag bars to move or resize tasks, a task cannot start before its predecessor ends, and TaskChanging lets your code refuse a change. Changes arrive through TasksChanged as copies, so the objects you passed in are never edited.
Examples
#Project schedule
Drag a bar to move a task, or its end to resize it; use Add, Edit and Delete and switch the timescale; rule-breaking changes are refused with a message.
| Task | Start | End | Nov 2Dec 2 |
|---|---|---|---|
| Design | 11/2/2026 | 11/27/2026 | |
| Wireframes | 11/2/2026 | 11/13/2026 | |
| Visual design | 11/13/2026 | 11/27/2026 | |
| Build | 11/27/2026 | 12/11/2026 | |
| Front end | 11/27/2026 | 12/8/2026 | |
| API | 11/27/2026 | 12/11/2026 | |
| Content | 11/9/2026 | 11/30/2026 | |
| Test | 12/11/2026 | 12/18/2026 | |
| Launch | 12/18/2026 | 12/26/2026 |
9 tasks, 11/2/2026 to 12/26/2026; 1 complete.
#Read-only timeline with a task template
Switch the timescale between Day, Week, Month and Year on a read-only plan whose TaskTemplate adds each task's progress; the Gantt's own toolbar reports changes through ViewChanged.
| Task | Start | End | Nov 2Dec 2 |
|---|---|---|---|
| Design 90% | 11/2/2026 | 11/27/2026 | |
| Wireframes 100% | 11/2/2026 | 11/13/2026 | |
| Visual design 80% | 11/13/2026 | 11/27/2026 | |
| Build 35% | 11/27/2026 | 12/11/2026 | |
| Front end 40% | 11/27/2026 | 12/8/2026 | |
| API 30% | 11/27/2026 | 12/11/2026 | |
| Content 60% | 11/9/2026 | 11/30/2026 | |
| Test 0% | 12/11/2026 | 12/18/2026 | |
| Launch 0% | 12/18/2026 | 12/26/2026 |
View: Month.
#Vetoing a change
TaskChanging locks finished tasks and refuses every delete: drag Wireframes a day left, or select Launch and press Delete, and the line under the chart reports the refusal.
| Task | Start | End | Nov 2Dec 2 |
|---|---|---|---|
| Design | 11/2/2026 | 11/27/2026 | |
| Wireframes | 11/2/2026 | 11/13/2026 | |
| Visual design | 11/13/2026 | 11/27/2026 | |
| Build | 11/27/2026 | 12/11/2026 | |
| Front end | 11/27/2026 | 12/8/2026 | |
| API | 11/27/2026 | 12/11/2026 | |
| Content | 11/9/2026 | 11/30/2026 | |
| Test | 12/11/2026 | 12/18/2026 | |
| Launch | 12/18/2026 | 12/26/2026 |
No changes yet.