Skip to main content

syncfusion-blazor-gantt-chart

Implements Syncfusion Blazor Gantt for project scheduling. Covers SfGantt, GanttTaskFields, GanttColumns, GanttEditSettings, taskbar editing, dependencies, resources, timeline, critical path, baselines, and Excel/PDF export. Applicable for Blazor Gantt charts, task scheduling, WBS, and Syncfusion.Blazor.Gantt integration.

Quellinformationen

Repository
syncfusion/blazor-ui-components-skills
Letzte Quellaktivitรคt
6. Juli 2026 um 07:20
Erkannte Sprache von SKILL.md
Englisch
Sterne
4
Forks
1

Installationsoptionen

StandardmรครŸig ist der Prompt ausgewรคhlt, der zuerst die Quelle prรผft. Sie kรถnnen zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prรผfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich fรผr eine Installation entscheiden.

Datei-Explorer
37 Dateien

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen ยท Schreibgeschรผtzte Vorschau
name
syncfusion-blazor-gantt-chart
description
Implements Syncfusion Blazor Gantt for project scheduling. Covers SfGantt, GanttTaskFields, GanttColumns, GanttEditSettings, taskbar editing, dependencies, resources, timeline, critical path, baselines, and Excel/PDF export. Applicable for Blazor Gantt charts, task scheduling, WBS, and Syncfusion.Blazor.Gantt integration.
metadata
{"author":"Syncfusion Inc","version":"34.1.29"}
# Implementing Syncfusion Blazor Gantt Chart ## When to Use This Skill Use this skill when the user needs to: - **Implement project scheduling interfaces** similar to Microsoft Project with visual timeline and task management - **Display hierarchical task structures** with parent-child relationships, dependencies, and progress tracking - **Enable interactive timeline editing** through drag-and-drop taskbars, resize operations, and dependency linking - **Manage project resources** including personnel allocation, workload tracking, and overallocation detection - **Configure complex timelines** with custom zoom levels, working hours, holidays, time zones, and duration units - **Export project data** to Excel, CSV, or PDF formats with customizable layouts and styling - **Handle remote data** through Entity Framework, Dapper, custom adaptors, or REST API connections - **Implement critical path analysis** for identifying tasks that impact project completion dates - **Create resource views** showing task allocation and utilization across team members and equipment This skill provides comprehensive guidance for the `SfGantt<TValue>` component, covering all aspects from basic setup through advanced features like split tasks, baseline tracking, and custom PDF exports. --- ## Documentation and Navigation Guide This skill is organized into 14 major sections. Each section contains focused reference files covering specific features. Use this navigation guide to identify which reference to read based on the user's needs. --- ### 1. Getting Started **When to read:** Initial setup, installation, platform-specific configuration ๐Ÿ“„ **Read:** [references/getting-started-webassembly.md](references/getting-started-webassembly.md) - NuGet package installation for Blazor WebAssembly - Basic component setup and registration - CSS theme imports and configuration - First minimal Gantt chart example - Task data model and field mapping ๐Ÿ“„ **Read:** [references/getting-started-server.md](references/getting-started-server.md) - Blazor Server-specific setup and services - Service registration in Program.cs - Component initialization differences --- ### 2. Data Binding and Remote Data **When to read:** Setting up data sources, connecting to databases, custom data adaptors ๐Ÿ“„ **Read:** [references/data-binding-and-field-mapping.md](references/data-binding-and-field-mapping.md) - Hierarchical and self-referential data structures - GanttTaskFields configuration and mapping - Required vs optional fields - SfDataManager integration - Load-on-demand for large datasets ๐Ÿ“„ **Read:** [references/remote-data-adaptors.md](references/remote-data-adaptors.md) - UrlAdaptor for REST APIs - Custom DataAdaptor implementation - Handling CRUD, search, filter, sort operations - Injecting services and passing parameters --- ### 3. Task Management **When to read:** Creating, editing, deleting tasks, dependencies, scheduling, undo/redo, critical path ๐Ÿ“„ **Read:** [references/task-scheduling-and-hierarchy.md](references/task-scheduling-and-hierarchy.md) - Nested hierarchical vs self-referential (ParentID) data structures - Task types: parent (rollup), child (work item), milestone (zero-duration), unscheduled - Auto-scheduling and manual scheduling approaches - Duration units: Day, Hour, Minute - Hierarchy effects: parent rollup, expand/collapse, indent/outdent ๐Ÿ“„ **Read:** [references/task-crud-operations.md](references/task-crud-operations.md) - Enable editing โ€” GanttEditSettings (AllowAdding, AllowEditing, AllowDeleting, AllowTaskbarEditing) - Edit modes โ€” Auto, Dialog, Taskbar - Adding tasks via toolbar, context menu, or programmatic API - Dialog customization โ€” expose only selected fields in the edit form - Remote CRUD โ€” InsertUrl, UpdateUrl, RemoveUrl, BatchUrl - Delete behavior โ€” cascade rules and child handling ๐Ÿ“„ **Read:** [references/task-dependencies-and-validation.md](references/task-dependencies-and-validation.md) - Dependency types: FS, SS, FF, SF - Predecessor field mapping via GanttTaskFields.Dependency - Dependency string format (e.g., `3FS`, `5SS+2d`) - Circular dependency detection - Auto-scheduling interaction with dependency changes ๐Ÿ“„ **Read:** [references/critical-path-and-analysis.md](references/critical-path-and-analysis.md) - EnableCriticalPath โ€” highlights critical tasks in red automatically - GanttCriticalPathSettings.SlackValue โ€” widen critical zone to near-critical tasks - "CriticalPath" toolbar item โ€” user-facing toggle - QueryChartRowInfo + GanttTaskModel.IsCritical โ€” custom critical taskbar color/style - GetCriticalTasksAsync() โ€” retrieve critical task list programmatically - Calculation rules: progress < 100%, dependency-driven, recalculates on every change ๐Ÿ“„ **Read:** [references/undo-redo-and-state.md](references/undo-redo-and-state.md) - EnableUndoRedo + UndoRedoActions list โ€” track 23 action types (Add, Edit, Delete, TaskbarEdit, Sort, Filter, ZoomIn/Out, Indent/Outdent, RowDragAndDrop, etc.) - MaxUndoRedoSteps โ€” limit history size (default: 20) - UndoAsync() / RedoAsync() โ€” programmatic undo/redo - "Undo" / "Redo" toolbar items โ€” keyboard shortcut Ctrl+Z / Ctrl+Y - OnUndoRedo event โ€” react after undo/redo with CanUndo/CanRedo state - State preservation patterns โ€” expand/collapse, selection, zoom, filters, scroll position --- ### 4. Timeline Configuration **When to read:** Timeline views, zoom levels, working hours, holidays, time zones, effort tracking ๐Ÿ“„ **Read:** [references/timeline-configuration.md](references/timeline-configuration.md) - Single-tier vs dual-tier timeline layouts - GanttTimelineSettings, GanttTopTierSettings, GanttBottomTierSettings - TimelineViewMode units: Hour, Day, Week, Month, Year - TimelineUnitSize โ€” controls cell width / density - Format strings for tier labels - ProjectStartDate / ProjectEndDate for visible date range ๐Ÿ“„ **Read:** [references/zooming-and-view-control.md](references/zooming-and-view-control.md) - ZoomIn, ZoomOut, ZoomToFit toolbar items - ZoomToFit โ€” fits the entire schedule into the visible viewport - Programmatic zoom via toolbar or code - Recommended defaults: day/week for operational, week/month for roadmap views ๐Ÿ“„ **Read:** [references/working-time-holidays-timezone.md](references/working-time-holidays-timezone.md) - DayWorkingTime โ€” define working hours per day (e.g., 8-hour day) - WorkWeek โ€” specify which days are working days - GanttHolidays / GanttHoliday โ€” non-working dates with From/To/Label - Timezone considerations for multi-region teams - Impact on task duration calculations and auto-scheduling ๐Ÿ“„ **Read:** [references/work-and-effort-tracking.md](references/work-and-effort-tracking.md) - Work field mapping in GanttTaskFields.Work - Task types: FixedDuration, FixedWork, FixedUnit - Work = Duration ร— WorkingHoursPerDay ร— (Unit / 100) - Resource allocation units affect work calculation - WorkUnit property (Hour, Day, Minute) --- ### 5. Resources **When to read:** Resource assignment, resource views, overallocation detection, assignment CRUD ๐Ÿ“„ **Read:** [references/resources-and-allocation.md](references/resources-and-allocation.md) - GanttResource โ€” DataSource, Id, Name, MaxUnits, Group field mappings - GanttAssignmentFields โ€” PrimaryKey, TaskID, ResourceID, Units - ResourceData model (ResourceId, ResourceName, MaxUnit) + AssignmentModel (PrimaryId, TaskID, ResourceId, Unit) - Assign resources via cell editing (GanttResourceColumn), dialog, or programmatically - AddResourceAssignmentAsync / UpdateResourceAssignmentAsync / DeleteResourceAssignmentAsync - Task types with resources: FixedDuration, FixedWork, FixedUnit - ViewType.ResourceView โ€” resource-centric hierarchy (resources as parents, tasks as children) - ShowOverallocation="true" โ€” highlights over-allocated date ranges in resource view - Over-allocation = daily work from all tasks > DayWorkingHours ร— MaxUnits / 100 - GanttLabelSettings.RightLabel="Resources" โ€” show resource names in taskbar label ๐Ÿ“„ **Read:** [references/assignment-fields-and-resource-mapping.md](references/assignment-fields-and-resource-mapping.md) - GanttAssignmentFields\<TValue, TAssignment\> class and properties - Resource assignment collection and foreign key relationships - AddResourceAssignmentAsync, UpdateResourceAssignmentAsync, DeleteResourceAssignmentAsync - Many-to-many task-resource mapping patterns - Resource allocation units and percentage tracking --- ### 6. Task Segments and Splitting **When to read:** Split tasks, task segments, interrupted schedules, paused work ๐Ÿ“„ **Read:** [references/segment-fields-and-split-tasks.md](references/segment-fields-and-split-tasks.md) - GanttSegmentFields\<TValue, TSegments\> โ€” PrimaryKey, TaskID, StartDate, EndDate field mappings - Segment data model: separate collection linked to tasks via TaskID - SplitTaskAsync โ€” split a task at a specified date programmatically - MergeTaskAsync โ€” merge segments back into a single task - UI-based splitting via context menu or dialog - Segment taskbar rendering โ€” multiple connected bars with gaps - Use cases: planned breaks, resource unavailability, approval pauses --- ### 7. Visualization **When to read:** Taskbar templates, baselines, markers, labels, interactive taskbar editing ๐Ÿ“„ **Read:** [references/taskbar-and-templates.md](references/taskbar-and-templates.md) - GanttTemplates.TaskbarTemplate โ€” custom RenderFragment for taskbar content - GanttTooltipSettings.TaskbarTemplate โ€” custom tooltip content - ShowBaseline / BaselineColor / BaselineStart / BaselineEnd โ€” planned vs actual comparison - TaskbarHeight / RowHeight โ€” size control - Performance note: combine complex templates with EnableVirtualization ๐Ÿ“„ **Read:** [references/markers-and-labels.md](references/markers-and-labels.md) - GanttEventMarkers / GanttEventMarker โ€” vertical timeline lines with Date, Text, CssClass - GanttLabelSettings โ€” LeftLabel, RightLabel, TopLabel with field name or template - Data markers via TaskbarTemplate โ€” conditional icons based on task properties - Limit markers to essential dates to avoid timeline clutter ๐Ÿ“„ **Read:** [references/taskbar-editing.md](references/taskbar-editing.md) - AllowTaskbarEditing="true" in GanttEditSettings - Drag to move task โ€” updates StartDate and EndDate - Resize left/right handle โ€” adjusts start or end date - Drag progress handle โ€” updates Progress field - TaskbarEdited event โ€” receives TaskbarEditedEventArgs\<TValue\> - OnActionBegin โ€” validate or cancel taskbar edits via args.Cancel --- ### 8. Grid Columns **When to read:** Column configuration, types, formatting, show/hide, autofit, validation, reordering, resizing, frozen columns, column menu ๐Ÿ“„ **Read:** [references/column-basics-and-formatting.md](references/column-basics-and-formatting.md) - GanttColumn definition (Field, HeaderText, Width, TextAlign, Format, Type, Visible) - Column types including DateOnly, TimeOnly, Checkbox - Number formatting (N, C, P variants) and date formatting (custom pattern strings) - AutoFit columns โ€” AutoFitColumnsAsync called in DataBound event - Show or hide columns programmatically โ€” ShowColumnsAsync / HideColumnsAsync - TreeColumnIndex โ€” move expand/collapse tree icons to a different column - HideAtMedia โ€” responsive columns via CSS media queries - Per-column action controls: AllowEditing, AllowFiltering, AllowSorting, AllowReordering, AllowResizing ๐Ÿ“„ **Read:** [references/column-interactions.md](references/column-interactions.md) - Column reordering โ€” AllowReordering on SfGantt and per-column override - Column resizing โ€” AllowResizing, MinWidth, MaxWidth; double-click to autofit - Frozen columns โ€” FrozenColumns (first N) vs IsFrozen per column (not combinable) - Freeze direction โ€” FreezeDirection.Left / FreezeDirection.Right with IsFrozen - Draggable freeze line โ€” AllowFreezeLineMoving - Column menu โ€” ShowColumnMenu on SfGantt with required companions (AllowSorting, AllowFiltering, AllowResizing) - Built-in column menu items: Sort Ascending, Sort Descending, AutoFit, AutoFit All, Column Chooser, Filter - Disable column menu per column โ€” GanttColumn.ShowColumnMenu="false" - Column chooser โ€” ShowColumnChooser + "ColumnChooser" toolbar item ๐Ÿ“„ **Read:** [references/column-validation-and-editing.md](references/column-validation-and-editing.md) - Enable editing โ€” GanttEditSettings, IsPrimaryKey on key column - Inline ValidationRules โ€” Required, RangeLength, Range, Number, Min, Max, Messages dictionary - Data annotation validation โ€” [Required], [StringLength], [Range] on model class - Custom validation attribute โ€” inherit ValidationAttribute, override IsValid() - Custom validator component โ€” GanttEditSettings.Validator + ValidatorTemplateContext + ShowValidationMessage + IDisposable - Per-column EditType โ€” DefaultEdit, NumericEdit, DatePickerEdit, DateTimePickerEdit, BooleanEdit, DropDownEdit - Note: validation not supported for Resource column --- ### 9. Rows and Selection **When to read:** Row operations, cell/row selection modes ๐Ÿ“„ **Read:** [references/rows-and-height.md](references/rows-and-height.md) - RowHeight configuration - AutoFitRows feature - Row template customization - Row-level styling ๐Ÿ“„ **Read:** [references/selection-modes.md](references/selection-modes.md) - SelectionSettings (Mode, Type, CellSelectionMode) - Row selection (Single/Multiple) - Cell selection (Box/Flow/BoxWithBorder) - Programmatic selection APIs (SelectRow, SelectCell) --- ### 10. Interactions **When to read:** User interactions, filtering, sorting, searching ๐Ÿ“„ **Read:** [references/filtering-and-search.md](references/filtering-and-search.md) - FilterSettings (Type: Menu, Excel) - FilterHierarchyMode (Parent, Child, Both, None) - Search functionality (SearchSettings) - Column-level filtering ๐Ÿ“„ **Read:** [references/sorting-operations.md](references/sorting-operations.md) - AllowSorting configuration - Single and multi-column sorting - SortSettings (Columns collection) - Programmatic sorting APIs ๐Ÿ“„ **Read:** [references/context-menu-and-toolbar.md](references/context-menu-and-toolbar.md) - Toolbar built-in items (18 items) and custom items with Align support - Mixed built-in + custom toolbar using List\<Object\> - Enable/disable toolbar items dynamically via EnableItems method - Context menu โ€” EnableContextMenu, built-in items, custom items, sub-menus - Disable context menu for specific columns via ContextMenuOpen event - ContextMenuItemClicked event for custom item handling ๐Ÿ“„ **Read:** [references/touch-and-interaction-modes.md](references/touch-and-interaction-modes.md) - Touch interaction support - EnableTouch property - Splitter for resizing grid/chart panes - SplitterSettings configuration ๐Ÿ“„ **Read:** [references/clipboard-and-accessibility.md](references/clipboard-and-accessibility.md) - Copy/paste functionality - Clipboard module integration - Keyboard navigation - Accessibility features --- ### 11. Performance **When to read:** Optimization strategies, large datasets ๐Ÿ“„ **Read:** [references/virtualization-and-performance.md](references/virtualization-and-performance.md) - EnableRowVirtualization for large datasets - Row and column virtualization - Frozen columns (FrozenColumns property) - WebAssembly performance optimization tips - Best practices for handling 10,000+ tasks --- ### 12. Export **When to read:** PDF and Excel export features ๐Ÿ“„ **Read:** [references/pdf-export.md](references/pdf-export.md) - PdfExport() method - PdfExportProperties configuration - Multi-page PDF export - Header and footer customization - Page size and styling in PDF - Template-based PDF export ๐Ÿ“„ **Read:** [references/excel-export.md](references/excel-export.md) - ExcelExport() method - ExcelExportProperties configuration - Column formatting in Excel - Hierarchical data export - Custom cell styling --- ### 13. API Reference **When to read:** Detailed API documentation lookup ๐Ÿ“„ **Read:** [references/gantt-methods-properties.md](references/gantt-methods-properties.md) - SfGantt<TValue> main component - GanttTaskFields mapping - GanttColumn configuration - GanttResource properties - GanttSegment for task splitting ๐Ÿ“„ **Read:** [references/api-settings-classes.md](references/api-settings-classes.md) - GanttEditSettings (AllowAdding, AllowEditing, AllowDeleting, Mode) - GanttSelectionSettings (Mode, Type, CellSelectionMode) - GanttFilterSettings (Type, HierarchyMode) - GanttSortSettings and GanttSearchSettings - GanttTimelineSettings and GanttSplitterSettings ๐Ÿ“„ **Read:** [references/api-event-args.md](references/api-event-args.md) - GanttActionEventArgs<TValue> - BeforeTooltipRenderEventArgs<TValue> - BeforeCopyEventArgs - Other event argument classes ๐Ÿ“„ **Read:** [references/api-enums-and-types.md](references/api-enums-and-types.md) - EditMode (Auto, Dialog, Taskbar) - DependencyType (FS, SF, FF, SS) - DurationUnit (Day, Hour, Minute) - FilterType, ViewType, GridLine enums - Other enum types --- ## Quick Start Example ```razor @page "/gantt" @using Syncfusion.Blazor.Gantt <SfGantt DataSource="@TaskCollection" Height="450px" Width="100%"> <GanttTaskFields Id="TaskId" Name="TaskName" StartDate="StartDate" EndDate="EndDate" Duration="Duration" Progress="Progress" ParentID="ParentId" Dependency="Predecessor"> </GanttTaskFields> </SfGantt> @code { private List<TaskData> TaskCollection { get; set; } protected override void OnInitialized() { TaskCollection = new List<TaskData> {
Auf GitHub ansehen
Diese SKILL.md ist sehr gross, daher zeigt SkillsMP hier nur den ersten Abschnitt. Auf GitHub ansehen