Displays tasks in a split view: hierarchical rows on the left and a timeline with task bars on the right.
IComponent
IHandleEvent
IHandleAfterRender
RadzenComponent.GetIdAttribute
RadzenComponent.SetParametersAsync
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.DefaultUICulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenGantt<TItem> : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender| Name | Description |
|---|---|
| TItem | Task item type. |
Displays tasks in a split view: hierarchical rows on the left and a timeline with task bars on the right.
public RadzenGantt<TItem>()Gets or sets whether alternating rows are shown.
public bool AllowAlternatingRows { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether alternating rows are shown. |
Enables column picking. Default is false.
public bool AllowColumnPicking { get; set; }
| Type | Description |
|---|---|
| bool | Enables column picking. Default is false. |
Enables column reordering. Default is false.
public bool AllowColumnReorder { get; set; }
| Type | Description |
|---|---|
| bool | Enables column reordering. Default is false. |
Enables column resizing. Default is false.
public bool AllowColumnResize { get; set; }
| Type | Description |
|---|---|
| bool | Enables column resizing. Default is false. |
Gets or sets whether filter date input is allowed.
public bool AllowFilterDateInput { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether filter date input is allowed. |
Enables filtering in the left pane grid. Default is true.
public bool AllowFiltering { get; set; }
| Type | Description |
|---|---|
| bool | Enables filtering in the left pane grid. Default is true. |
Enables multi-column sorting. Default is false.
public bool AllowMultiColumnSorting { get; set; }
| Type | Description |
|---|---|
| bool | Enables multi-column sorting. Default is false. |
Enables paging in the left pane grid. Default is false.
public bool AllowPaging { get; set; }
| Type | Description |
|---|---|
| bool | Enables paging in the left pane grid. Default is false. |
Gets or sets whether row selection is allowed on row click.
public bool AllowRowSelectOnRowClick { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether row selection is allowed on row click. |
Enables sorting in the left pane grid. Default is true.
public bool AllowSorting { get; set; }
| Type | Description |
|---|---|
| bool | Enables sorting in the left pane grid. Default is true. |
Enables row virtualization. Default is false.
public bool AllowVirtualization { get; set; }
| Type | Description |
|---|---|
| bool | Enables row virtualization. Default is false. |
And operator text.
public string AndOperatorText { get; set; }
| Type | Description |
|---|---|
| string | And operator text. |
Apply filter text.
public string ApplyFilterText { get; set; }
| Type | Description |
|---|---|
| string | Apply filter text. |
Property name for the baseline (planned) end date.
public string BaselineEndProperty { get; set; }
| Type | Description |
|---|---|
| string | Property name for the baseline (planned) end date. |
Property name for the baseline (planned) start date. When set together with BaselineEndProperty, a secondary bar is rendered behind the actual bar showing planned vs actual.
public string BaselineStartProperty { get; set; }
| Type | Description |
|---|---|
| string | Property name for the baseline (planned) start date. When set together with BaselineEndProperty, a secondary bar is rendered behind the actual bar showing planned vs actual. |
Cell click callback.
public EventCallback<DataGridCellMouseEventArgs<TItem>> CellClick { get; set; }
| Type | Description |
|---|---|
| EventCallback<DataGridCellMouseEventArgs<TItem>> | Cell click callback. |
Cell context menu callback.
public EventCallback<DataGridCellMouseEventArgs<TItem>> CellContextMenu { get; set; }
| Type | Description |
|---|---|
| EventCallback<DataGridCellMouseEventArgs<TItem>> | Cell context menu callback. |
Cell double click callback.
public EventCallback<DataGridCellMouseEventArgs<TItem>> CellDoubleClick { get; set; }
| Type | Description |
|---|---|
| EventCallback<DataGridCellMouseEventArgs<TItem>> | Cell double click callback. |
Cell render callback.
public Action<DataGridCellRenderEventArgs<TItem>> CellRender { get; set; }
| Type | Description |
|---|---|
| Action<DataGridCellRenderEventArgs<TItem>> | Cell render callback. |
Clear filter text.
public string ClearFilterText { get; set; }
| Type | Description |
|---|---|
| string | Clear filter text. |
Column reordered callback.
public EventCallback<DataGridColumnReorderedEventArgs<TItem>> ColumnReordered { get; set; }
| Type | Description |
|---|---|
| EventCallback<DataGridColumnReorderedEventArgs<TItem>> | Column reordered callback. |
Column reordering callback.
public EventCallback<DataGridColumnReorderingEventArgs<TItem>> ColumnReordering { get; set; }
| Type | Description |
|---|---|
| EventCallback<DataGridColumnReorderingEventArgs<TItem>> | Column reordering callback. |
Column resized callback.
public EventCallback<DataGridColumnResizedEventArgs<TItem>> ColumnResized { get; set; }
| Type | Description |
|---|---|
| EventCallback<DataGridColumnResizedEventArgs<TItem>> | Column resized callback. |
Optional columns definition for the left pane.
public RenderFragment Columns { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Optional columns definition for the left pane. |
Contains text.
public string ContainsText { get; set; }
| Type | Description |
|---|---|
| string | Contains text. |
Task items.
public IEnumerable<TItem> Data { get; set; }
| Type | Description |
|---|---|
| IEnumerable<TItem> | Task items. |
Day cell width in pixels.
public int DayWidthPx { get; set; }
| Type | Description |
|---|---|
| int | Day cell width in pixels. |
Gets or sets the density.
public Density Density { get; set; }
| Type | Description |
|---|---|
| Density | Gets or sets the density. |
Optional task dependencies to draw connecting lines using object references. For database scenarios, prefer DependencyData with property-name-based binding.
public IEnumerable<GanttDependency<TItem>> Dependencies { get; set; }
| Type | Description |
|---|---|
| IEnumerable<GanttDependency<TItem>> | Optional task dependencies to draw connecting lines using object references. For database scenarios, prefer DependencyData with property-name-based binding. |
Collection of dependency items (any POCO with predecessor/successor ID properties). Use together with DependencyFromProperty, DependencyToProperty, and optionally DependencyTypeProperty. When set, takes priority over Dependencies.
public IEnumerable<object> DependencyData { get; set; }
| Type | Description |
|---|---|
| IEnumerable<object> | Collection of dependency items (any POCO with predecessor/successor ID properties). Use together with DependencyFromProperty, DependencyToProperty, and optionally DependencyTypeProperty. When set, takes priority over Dependencies. |
Property name on DependencyData items that holds the predecessor task ID (must match values of IdProperty on the task items).
public string DependencyFromProperty { get; set; }
| Type | Description |
|---|---|
| string | Property name on DependencyData items that holds the predecessor task ID (must match values of IdProperty on the task items). |
Property name on DependencyData items that holds the successor task ID (must match values of IdProperty on the task items).
public string DependencyToProperty { get; set; }
| Type | Description |
|---|---|
| string | Property name on DependencyData items that holds the successor task ID (must match values of IdProperty on the task items). |
Optional property name on DependencyData items that holds the dependency type. When not set, all dependencies default to FinishToStart.
public string DependencyTypeProperty { get; set; }
| Type | Description |
|---|---|
| string | Optional property name on DependencyData items that holds the dependency type. When not set, all dependencies default to FinishToStart. |
Does not contain text.
public string DoesNotContainText { get; set; }
| Type | Description |
|---|---|
| string | Does not contain text. |
Gets or sets the edit mode.
public DataGridEditMode EditMode { get; set; }
| Type | Description |
|---|---|
| DataGridEditMode | Gets or sets the edit mode. |
Gets or sets the empty text.
public string EmptyText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the empty text. |
Property name used for task end date.
public string EndProperty { get; set; }
| Type | Description |
|---|---|
| string | Property name used for task end date. |
Ends with text.
public string EndsWithText { get; set; }
| Type | Description |
|---|---|
| string | Ends with text. |
Equals text.
public string EqualsText { get; set; }
| Type | Description |
|---|---|
| string | Equals text. |
Gets or sets the expand mode for hierarchical data.
public DataGridExpandMode ExpandMode { get; set; }
| Type | Description |
|---|---|
| DataGridExpandMode | Gets or sets the expand mode for hierarchical data. |
Column filter callback.
public EventCallback<DataGridColumnFilterEventArgs<TItem>> Filter { get; set; }
| Type | Description |
|---|---|
| EventCallback<DataGridColumnFilterEventArgs<TItem>> | Column filter callback. |
Gets or sets the filter case sensitivity.
public FilterCaseSensitivity FilterCaseSensitivity { get; set; }
| Type | Description |
|---|---|
| FilterCaseSensitivity | Gets or sets the filter case sensitivity. |
Column filter cleared callback.
public EventCallback<DataGridColumnFilterEventArgs<TItem>> FilterCleared { get; set; }
| Type | Description |
|---|---|
| EventCallback<DataGridColumnFilterEventArgs<TItem>> | Column filter cleared callback. |
Gets or sets the filter mode.
public FilterMode FilterMode { get; set; }
| Type | Description |
|---|---|
| FilterMode | Gets or sets the filter mode. |
Gets or sets the filter popup render mode.
public PopupRenderMode FilterPopupRenderMode { get; set; }
| Type | Description |
|---|---|
| PopupRenderMode | Gets or sets the filter popup render mode. |
Filter text.
public string FilterText { get; set; }
| Type | Description |
|---|---|
| string | Filter text. |
Whether to go to the first page on sort. Default is false.
public bool GotoFirstPageOnSort { get; set; }
| Type | Description |
|---|---|
| bool | Whether to go to the first page on sort. Default is false. |
Greater than or equals text.
public string GreaterThanOrEqualsText { get; set; }
| Type | Description |
|---|---|
| string | Greater than or equals text. |
Greater than text.
public string GreaterThanText { get; set; }
| Type | Description |
|---|---|
| string | Greater than text. |
Gets or sets the grid lines.
public DataGridGridLines GridLines { get; set; }
| Type | Description |
|---|---|
| DataGridGridLines | Gets or sets the grid lines. |
Header cell render callback.
public Action<DataGridCellRenderEventArgs<TItem>> HeaderCellRender { get; set; }
| Type | Description |
|---|---|
| Action<DataGridCellRenderEventArgs<TItem>> | Header cell render callback. |
Date format for the day labels of the Day zoom and the week range labels of the Month zoom. When not set, the short date pattern of Culture without its year part is used, for example M/d for en-US and dd/MM for en-GB.
public string HeaderDateFormat { get; set; }
| Type | Description |
|---|---|
| string | Date format for the day labels of the Day zoom and the week range labels of the Month zoom. When not set, the short date pattern of Culture without its year part is used, for example M/d for en-US and dd/MM for en-GB. |
Optional capacity threshold for the histogram. A capacity line is drawn at this value and columns exceeding it are highlighted as overallocated.
public double? HistogramCapacity { get; set; }
| Type | Description |
|---|---|
| double? | Optional capacity threshold for the histogram. A capacity line is drawn at this value and columns exceeding it are highlighted as overallocated. |
Gets or sets the accessible label of the histogram. Defaults to "Workload".
public string HistogramLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the accessible label of the histogram. Defaults to "Workload". |
Optional numeric property name on task items accumulated by the histogram. When not set, the histogram counts active tasks per time unit.
public string HistogramValueProperty { get; set; }
| Type | Description |
|---|---|
| string | Optional numeric property name on task items accumulated by the histogram. When not set, the histogram counts active tasks per time unit. |
Property name used as unique task id.
public string IdProperty { get; set; }
| Type | Description |
|---|---|
| string | Property name used as unique task id. |
Is empty text.
public string IsEmptyText { get; set; }
| Type | Description |
|---|---|
| string | Is empty text. |
Gets or sets whether loading indicator is shown.
public bool IsLoading { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether loading indicator is shown. |
Is not empty text.
public string IsNotEmptyText { get; set; }
| Type | Description |
|---|---|
| string | Is not empty text. |
Is not null text.
public string IsNotNullText { get; set; }
| Type | Description |
|---|---|
| string | Is not null text. |
Is null text.
public string IsNullText { get; set; }
| Type | Description |
|---|---|
| string | Is null text. |
Returns whether the underlying grid has a valid edit state.
public bool IsValid { get; }
| Type | Description |
|---|---|
| bool | Returns whether the underlying grid has a valid edit state. |
Key down callback.
public EventCallback<KeyboardEventArgs> KeyDown { get; set; }
| Type | Description |
|---|---|
| EventCallback<KeyboardEventArgs> | Key down callback. |
Width of the left pane (CSS length).
public string LeftPaneWidth { get; set; }
| Type | Description |
|---|---|
| string | Width of the left pane (CSS length). |
Less than or equals text.
public string LessThanOrEqualsText { get; set; }
| Type | Description |
|---|---|
| string | Less than or equals text. |
Less than text.
public string LessThanText { get; set; }
| Type | Description |
|---|---|
| string | Less than text. |
Load settings callback.
public Action<DataGridLoadSettingsEventArgs> LoadSettings { get; set; }
| Type | Description |
|---|---|
| Action<DataGridLoadSettingsEventArgs> | Load settings callback. |
Gets or sets the logical filter operator.
public LogicalFilterOperator LogicalFilterOperator { get; set; }
| Type | Description |
|---|---|
| LogicalFilterOperator | Gets or sets the logical filter operator. |
Optional vertical date markers rendered on the timeline (e.g. deadlines, milestones, releases).
public IEnumerable<GanttMarker> Markers { get; set; }
| Type | Description |
|---|---|
| IEnumerable<GanttMarker> | Optional vertical date markers rendered on the timeline (e.g. deadlines, milestones, releases). |
Tooltip for the "Next" navigation button. Default is "Next".
public string NextText { get; set; }
| Type | Description |
|---|---|
| string | Tooltip for the "Next" navigation button. Default is "Next". |
The days of the week considered non-working. Used when ShowWeekends is true. Defaults to Saturday and Sunday.
public IEnumerable<DayOfWeek> NonWorkingDays { get; set; }
| Type | Description |
|---|---|
| IEnumerable<DayOfWeek> | The days of the week considered non-working. Used when ShowWeekends is true. Defaults to Saturday and Sunday. |
Not equals text.
public string NotEqualsText { get; set; }
| Type | Description |
|---|---|
| string | Not equals text. |
Or operator text.
public string OrOperatorText { get; set; }
| Type | Description |
|---|---|
| string | Or operator text. |
Page size when AllowPaging is enabled.
public int PageSize { get; set; }
| Type | Description |
|---|---|
| int | Page size when AllowPaging is enabled. |
Page size changed callback.
public EventCallback<int> PageSizeChanged { get; set; }
| Type | Description |
|---|---|
| EventCallback<int> | Page size changed callback. |
Property name used as parent task id.
public string ParentIdProperty { get; set; }
| Type | Description |
|---|---|
| string | Property name used as parent task id. |
Picked columns changed callback.
public EventCallback<DataGridPickedColumnsChangedEventArgs<TItem>> PickedColumnsChanged { get; set; }
| Type | Description |
|---|---|
| EventCallback<DataGridPickedColumnsChangedEventArgs<TItem>> | Picked columns changed callback. |
Tooltip for the "Previous" navigation button. Default is "Previous".
public string PrevText { get; set; }
| Type | Description |
|---|---|
| string | Tooltip for the "Previous" navigation button. Default is "Previous". |
Property name used for task progress (0..100). Optional.
public string ProgressProperty { get; set; }
| Type | Description |
|---|---|
| string | Property name used for task progress (0..100). Optional. |
Render callback.
public Action<DataGridRenderEventArgs<TItem>> Render { get; set; }
| Type | Description |
|---|---|
| Action<DataGridRenderEventArgs<TItem>> | Render callback. |
Optional columns definition for the resource grid in the left pane. Use RadzenDataGridColumn<T> with TItem="object". Only used when ViewMode is Resource.
public RenderFragment ResourceColumns { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Optional columns definition for the resource grid in the left pane. Use RadzenDataGridColumn<T> with TItem="object". Only used when ViewMode is Resource. |
Collection of resource items. Each item can be any POCO — properties are accessed via ResourceIdProperty and ResourceTextProperty. Only used when ViewMode is Resource.
public Collections.IEnumerable ResourceData { get; set; }
| Type | Description |
|---|---|
| Collections.IEnumerable | Collection of resource items. Each item can be any POCO — properties are accessed via ResourceIdProperty and ResourceTextProperty. Only used when ViewMode is Resource. |
Property name on ResourceData items that holds the unique resource identifier. Must match values of TaskResourceIdProperty on the task items.
public string ResourceIdProperty { get; set; }
| Type | Description |
|---|---|
| string | Property name on ResourceData items that holds the unique resource identifier. Must match values of TaskResourceIdProperty on the task items. |
Property name on ResourceData items used for hierarchical parent-child relationships. When set, resources are displayed in a tree structure. Tasks of collapsed descendant resources are rolled up onto the nearest visible ancestor row.
public string ResourceParentIdProperty { get; set; }
| Type | Description |
|---|---|
| string | Property name on ResourceData items used for hierarchical parent-child relationships. When set, resources are displayed in a tree structure. Tasks of collapsed descendant resources are rolled up onto the nearest visible ancestor row. |
Property name on ResourceData items used for the resource display text. Used as the default column when ResourceColumns is not set.
public string ResourceTextProperty { get; set; }
| Type | Description |
|---|---|
| string | Property name on ResourceData items used for the resource display text. Used as the default column when ResourceColumns is not set. |
Gets or sets whether grid is responsive.
public bool Responsive { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether grid is responsive. |
Row click callback.
public EventCallback<DataGridRowMouseEventArgs<TItem>> RowClick { get; set; }
| Type | Description |
|---|---|
| EventCallback<DataGridRowMouseEventArgs<TItem>> | Row click callback. |
Row collapse callback.
public EventCallback<TItem> RowCollapse { get; set; }
| Type | Description |
|---|---|
| EventCallback<TItem> | Row collapse callback. |
Row create callback.
public EventCallback<TItem> RowCreate { get; set; }
| Type | Description |
|---|---|
| EventCallback<TItem> | Row create callback. |
Row deselect callback.
public EventCallback<TItem> RowDeselect { get; set; }
| Type | Description |
|---|---|
| EventCallback<TItem> | Row deselect callback. |
Row double click callback.
public EventCallback<DataGridRowMouseEventArgs<TItem>> RowDoubleClick { get; set; }
| Type | Description |
|---|---|
| EventCallback<DataGridRowMouseEventArgs<TItem>> | Row double click callback. |
Row edit callback.
public EventCallback<TItem> RowEdit { get; set; }
| Type | Description |
|---|---|
| EventCallback<TItem> | Row edit callback. |
Row expand callback.
public EventCallback<TItem> RowExpand { get; set; }
| Type | Description |
|---|---|
| EventCallback<TItem> | Row expand callback. |
Row height in pixels.
public int RowHeightPx { get; set; }
| Type | Description |
|---|---|
| int | Row height in pixels. |
Row render callback.
public Action<RowRenderEventArgs<TItem>> RowRender { get; set; }
| Type | Description |
|---|---|
| Action<RowRenderEventArgs<TItem>> | Row render callback. |
Row select callback.
public EventCallback<TItem> RowSelect { get; set; }
| Type | Description |
|---|---|
| EventCallback<TItem> | Row select callback. |
Row update callback.
public EventCallback<TItem> RowUpdate { get; set; }
| Type | Description |
|---|---|
| EventCallback<TItem> | Row update callback. |
Settings changed callback.
public EventCallback<DataGridSettings> SettingsChanged { get; set; }
| Type | Description |
|---|---|
| EventCallback<DataGridSettings> | Settings changed callback. |
Gets or sets whether to show cell data as tooltip.
public bool ShowCellDataAsTooltip { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether to show cell data as tooltip. |
Gets or sets whether to show column title as tooltip.
public bool ShowColumnTitleAsTooltip { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether to show column title as tooltip. |
When true, highlights the critical path — the longest chain of dependent tasks that determines the project end date. Requires Dependencies to be set.
public bool ShowCriticalPath { get; set; }
| Type | Description |
|---|---|
| bool | When true, highlights the critical path — the longest chain of dependent tasks that determines the project end date. Requires Dependencies to be set. |
Gets or sets whether empty message is shown.
public bool ShowEmptyMessage { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether empty message is shown. |
Gets or sets whether header is shown.
public bool ShowHeader { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether header is shown. |
When enabled, an accumulated workload histogram is displayed below the timeline, synchronized with its horizontal scroll. Each timeline column shows the total of HistogramValueProperty over the tasks active in that time unit, or the task count when no property is set.
public bool ShowHistogram { get; set; }
| Type | Description |
|---|---|
| bool | When enabled, an accumulated workload histogram is displayed below the timeline, synchronized with its horizontal scroll. Each timeline column shows the total of HistogramValueProperty over the tasks active in that time unit, or the task count when no property is set. |
Shows multi-column sorting index. Default is false.
public bool ShowMultiColumnSortingIndex { get; set; }
| Type | Description |
|---|---|
| bool | Shows multi-column sorting index. Default is false. |
When true, draws a vertical line on the timeline at the current date/time.
public bool ShowTodayLine { get; set; }
| Type | Description |
|---|---|
| bool | When true, draws a vertical line on the timeline at the current date/time. |
When enabled, tasks whose resource identifier is null or does not match any ResourceData item are shown in an "Unassigned" row at the bottom. The row item is a GanttUnassignedResource instance — custom ResourceColumns templates can type-check for it. Only used when ViewMode is Resource.
public bool ShowUnassignedTasks { get; set; }
| Type | Description |
|---|---|
| bool | When enabled, tasks whose resource identifier is null or does not match any ResourceData item are shown in an "Unassigned" row at the bottom. The row item is a GanttUnassignedResource instance — custom ResourceColumns templates can type-check for it. Only used when ViewMode is Resource. |
When true, shades non-working days (Saturday and Sunday by default) on the timeline.
public bool ShowWeekends { get; set; }
| Type | Description |
|---|---|
| bool | When true, shades non-working days (Saturday and Sunday by default) on the timeline. |
Column sort callback.
public EventCallback<DataGridColumnSortEventArgs<TItem>> Sort { get; set; }
| Type | Description |
|---|---|
| EventCallback<DataGridColumnSortEventArgs<TItem>> | Column sort callback. |
Property name used for task start date.
public string StartProperty { get; set; }
| Type | Description |
|---|---|
| string | Property name used for task start date. |
Starts with text.
public string StartsWithText { get; set; }
| Type | Description |
|---|---|
| string | Starts with text. |
Raised when a task bar is clicked.
public EventCallback<TItem> TaskClick { get; set; }
| Type | Description |
|---|---|
| EventCallback<TItem> | Raised when a task bar is clicked. |
Raised when the mouse enters a task bar. Commonly used to show a tooltip.
public EventCallback<GanttTaskMouseEventArgs<TItem>> TaskMouseEnter { get; set; }
| Type | Description |
|---|---|
| EventCallback<GanttTaskMouseEventArgs<TItem>> | Raised when the mouse enters a task bar. Commonly used to show a tooltip. |
Raised when the mouse leaves a task bar. Commonly used to close a tooltip.
public EventCallback<GanttTaskMouseEventArgs<TItem>> TaskMouseLeave { get; set; }
| Type | Description |
|---|---|
| EventCallback<GanttTaskMouseEventArgs<TItem>> | Raised when the mouse leaves a task bar. Commonly used to close a tooltip. |
Raised when a task bar is dragged to a new position on the timeline. The consumer should update the data item's start and end dates.
public EventCallback<GanttTaskMovedEventArgs<TItem>> TaskMove { get; set; }
| Type | Description |
|---|---|
| EventCallback<GanttTaskMovedEventArgs<TItem>> | Raised when a task bar is dragged to a new position on the timeline. The consumer should update the data item's start and end dates. |
Callback to customize the appearance of each task bar. Set CssClass or Attributes to change colors or styles per task.
public Action<GanttBarRenderEventArgs<TItem>> TaskRender { get; set; }
| Type | Description |
|---|---|
| Action<GanttBarRenderEventArgs<TItem>> | Callback to customize the appearance of each task bar. Set CssClass or Attributes to change colors or styles per task. |
Raised when a task bar edge is dragged to resize the task. The consumer should update the data item's start and/or end date.
public EventCallback<GanttTaskMovedEventArgs<TItem>> TaskResize { get; set; }
| Type | Description |
|---|---|
| EventCallback<GanttTaskMovedEventArgs<TItem>> | Raised when a task bar edge is dragged to resize the task. The consumer should update the data item's start and/or end date. |
Property name on task items (TItem) that holds the assigned resource identifier. The value must match ResourceIdProperty values on ResourceData items.
public string TaskResourceIdProperty { get; set; }
| Type | Description |
|---|---|
| string | Property name on task items (TItem) that holds the assigned resource identifier. The value must match ResourceIdProperty values on ResourceData items. |
Custom template for the content rendered inside each task bar. When set, replaces the default progress bar and label. Receives the task data item as context.
public RenderFragment<TItem> TaskTemplate { get; set; }
| Type | Description |
|---|---|
| RenderFragment<TItem> | Custom template for the content rendered inside each task bar. When set, replaces the default progress bar and label. Receives the task data item as context. |
Property name used for task title (shown in the first column when no template is provided).
public string TextProperty { get; set; }
| Type | Description |
|---|---|
| string | Property name used for task title (shown in the first column when no template is provided). |
Text for the "Today" navigation button. Default is "Today".
public string TodayText { get; set; }
| Type | Description |
|---|---|
| string | Text for the "Today" navigation button. Default is "Today". |
Gets or sets the display text of the unassigned tasks row. Defaults to "Unassigned".
public string UnassignedText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the display text of the unassigned tasks row. Defaults to "Unassigned". |
Optional explicit timeline end.
public DateTime? ViewEnd { get; set; }
| Type | Description |
|---|---|
| DateTime? | Optional explicit timeline end. |
Gets or sets the view mode. Defaults to Task. When set to Resource, rows represent resources and task bars are grouped by their assigned resource.
public GanttViewMode ViewMode { get; set; }
| Type | Description |
|---|---|
| GanttViewMode | Gets or sets the view mode. Defaults to Task. When set to Resource, rows represent resources and task bars are grouped by their assigned resource. |
Optional explicit timeline start.
public DateTime? ViewStart { get; set; }
| Type | Description |
|---|---|
| DateTime? | Optional explicit timeline start. |
Gets or sets the virtualization overscan count.
public int VirtualizationOverscanCount { get; set; }
| Type | Description |
|---|---|
| int | Gets or sets the virtualization overscan count. |
Number of weeks to render in Week view.
public int WeeksInView { get; set; }
| Type | Description |
|---|---|
| int | Number of weeks to render in Week view. |
Number of years to render in the multi-year Years view when ViewStart and ViewEnd are not set. Default is 3.
public int YearsInView { get; set; }
| Type | Description |
|---|---|
| int | Number of years to render in the multi-year Years view when ViewStart and ViewEnd are not set. Default is 3. |
Timeline zoom.
public GanttZoomLevel ZoomLevel { get; set; }
| Type | Description |
|---|---|
| GanttZoomLevel | Timeline zoom. |
Tooltip for the "Zoom to fit" navigation button. Default is "Zoom to fit".
public string ZoomToFitText { get; set; }
| Type | Description |
|---|---|
| string | Tooltip for the "Zoom to fit" navigation button. Default is "Zoom to fit". |
protected override Task AddContextMenu()
| Type | Description |
|---|---|
| Task |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
Cancels edit mode for the specified item.
public void CancelEditRow(TItem item)
| Type | Name | Description |
|---|---|---|
| TItem | item | The item to cancel editing for. |
Puts the specified item in edit mode.
public Task EditRow(TItem item)
| Type | Name | Description |
|---|---|---|
| TItem | item | The item to edit. |
| Type | Description |
|---|---|
| Task |
Expands the specified resource rows to show their assigned tasks and child resources. Only applicable when ViewMode is Resource.
public Task ExpandResourceRows(Collections.IEnumerable resources)
| Type | Name | Description |
|---|---|---|
| Collections.IEnumerable | resources | The resource items to expand. |
| Type | Description |
|---|---|
| Task |
Expands a range of rows. In resource view mode the resources the items are assigned to (including their ancestors) are expanded instead.
public Task ExpandRows(IEnumerable<TItem> items)
| Type | Name | Description |
|---|---|---|
| IEnumerable<TItem> | items | The range of rows. |
| Type | Description |
|---|---|
| Task |
protected override string GetComponentCssClass()
| Type | Description |
|---|---|
| string |
Inserts a new item after the specified row in edit mode.
public Task InsertAfterRow(TItem item, TItem afterItem)
| Type | Name | Description |
|---|---|---|
| TItem | item | The new item to insert. |
| TItem | afterItem | The item after which to insert. |
| Type | Description |
|---|---|
| Task |
Inserts a new item into the grid in edit mode.
public Task InsertRow(TItem item)
| Type | Name | Description |
|---|---|---|
| TItem | item | The item to insert. |
| Type | Description |
|---|---|
| Task |
protected override Task OnAfterRenderAsync(bool firstRender)
| Type | Name | Description |
|---|---|---|
| bool | firstRender |
| Type | Description |
|---|---|
| Task |
Reloads the underlying grid data.
public Task Reload()
| Type | Description |
|---|---|
| Task |
Updates the specified item and exits edit mode.
public Task UpdateRow(TItem item)
| Type | Name | Description |
|---|---|---|
| TItem | item | The item to update. |
| Type | Description |
|---|---|
| Task |
Auto-calculates ViewStart and ViewEnd and selects the best zoom level so that all tasks fit in the visible timeline.
public Task ZoomToFit()
| Type | Description |
|---|---|
| Task |