RadzenGantt<TItem> Class

Displays tasks in a split view: hierarchical rows on the left and a timeline with task bars on the right.

Inheritance

Object

ComponentBase

RadzenComponent

RadzenGantt<TItem>

Implements

IComponent

IHandleEvent

IHandleAfterRender

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenGantt<TItem> : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender

Type Parameters

Name Description
TItemTask item type.

Constructors

RadzenGantt<TItem>Link to this section

Displays tasks in a split view: hierarchical rows on the left and a timeline with task bars on the right.

Declaration
public RadzenGantt<TItem>()

Properties

AllowAlternatingRowsLink to this section

Gets or sets whether alternating rows are shown.

Declaration
public bool AllowAlternatingRows { get; set; }
Property Value
Type Description
boolGets or sets whether alternating rows are shown.

AllowColumnPickingLink to this section

Enables column picking. Default is false.

Declaration
public bool AllowColumnPicking { get; set; }
Property Value
Type Description
boolEnables column picking. Default is false.

AllowColumnReorderLink to this section

Enables column reordering. Default is false.

Declaration
public bool AllowColumnReorder { get; set; }
Property Value
Type Description
boolEnables column reordering. Default is false.

AllowColumnResizeLink to this section

Enables column resizing. Default is false.

Declaration
public bool AllowColumnResize { get; set; }
Property Value
Type Description
boolEnables column resizing. Default is false.

AllowFilterDateInputLink to this section

Gets or sets whether filter date input is allowed.

Declaration
public bool AllowFilterDateInput { get; set; }
Property Value
Type Description
boolGets or sets whether filter date input is allowed.

AllowFilteringLink to this section

Enables filtering in the left pane grid. Default is true.

Declaration
public bool AllowFiltering { get; set; }
Property Value
Type Description
boolEnables filtering in the left pane grid. Default is true.

AllowMultiColumnSortingLink to this section

Enables multi-column sorting. Default is false.

Declaration
public bool AllowMultiColumnSorting { get; set; }
Property Value
Type Description
boolEnables multi-column sorting. Default is false.

AllowPagingLink to this section

Enables paging in the left pane grid. Default is false.

Declaration
public bool AllowPaging { get; set; }
Property Value
Type Description
boolEnables paging in the left pane grid. Default is false.

AllowRowSelectOnRowClickLink to this section

Gets or sets whether row selection is allowed on row click.

Declaration
public bool AllowRowSelectOnRowClick { get; set; }
Property Value
Type Description
boolGets or sets whether row selection is allowed on row click.

AllowSortingLink to this section

Enables sorting in the left pane grid. Default is true.

Declaration
public bool AllowSorting { get; set; }
Property Value
Type Description
boolEnables sorting in the left pane grid. Default is true.

AllowVirtualizationLink to this section

Enables row virtualization. Default is false.

Declaration
public bool AllowVirtualization { get; set; }
Property Value
Type Description
boolEnables row virtualization. Default is false.

AndOperatorTextLink to this section

And operator text.

Declaration
public string AndOperatorText { get; set; }
Property Value
Type Description
stringAnd operator text.

ApplyFilterTextLink to this section

Apply filter text.

Declaration
public string ApplyFilterText { get; set; }
Property Value
Type Description
stringApply filter text.

BaselineEndPropertyLink to this section

Property name for the baseline (planned) end date.

Declaration
public string BaselineEndProperty { get; set; }
Property Value
Type Description
stringProperty name for the baseline (planned) end date.

BaselineStartPropertyLink to this section

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.

Declaration
public string BaselineStartProperty { get; set; }
Property Value
Type Description
stringProperty 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.

CellClickLink to this section

Cell click callback.

Declaration
public EventCallback<DataGridCellMouseEventArgs<TItem>> CellClick { get; set; }
Property Value
Type Description
EventCallback<DataGridCellMouseEventArgs<TItem>>Cell click callback.

CellContextMenuLink to this section

Cell context menu callback.

Declaration
public EventCallback<DataGridCellMouseEventArgs<TItem>> CellContextMenu { get; set; }
Property Value
Type Description
EventCallback<DataGridCellMouseEventArgs<TItem>>Cell context menu callback.

CellDoubleClickLink to this section

Cell double click callback.

Declaration
public EventCallback<DataGridCellMouseEventArgs<TItem>> CellDoubleClick { get; set; }
Property Value
Type Description
EventCallback<DataGridCellMouseEventArgs<TItem>>Cell double click callback.

CellRenderLink to this section

Cell render callback.

Declaration
public Action<DataGridCellRenderEventArgs<TItem>> CellRender { get; set; }
Property Value
Type Description
Action<DataGridCellRenderEventArgs<TItem>>Cell render callback.

ClearFilterTextLink to this section

Clear filter text.

Declaration
public string ClearFilterText { get; set; }
Property Value
Type Description
stringClear filter text.

ColumnReorderedLink to this section

Column reordered callback.

Declaration
public EventCallback<DataGridColumnReorderedEventArgs<TItem>> ColumnReordered { get; set; }
Property Value
Type Description
EventCallback<DataGridColumnReorderedEventArgs<TItem>>Column reordered callback.

ColumnReorderingLink to this section

Column reordering callback.

Declaration
public EventCallback<DataGridColumnReorderingEventArgs<TItem>> ColumnReordering { get; set; }
Property Value
Type Description
EventCallback<DataGridColumnReorderingEventArgs<TItem>>Column reordering callback.

ColumnResizedLink to this section

Column resized callback.

Declaration
public EventCallback<DataGridColumnResizedEventArgs<TItem>> ColumnResized { get; set; }
Property Value
Type Description
EventCallback<DataGridColumnResizedEventArgs<TItem>>Column resized callback.

ColumnsLink to this section

Optional columns definition for the left pane.

Declaration
public RenderFragment Columns { get; set; }
Property Value
Type Description
RenderFragmentOptional columns definition for the left pane.

ContainsTextLink to this section

Contains text.

Declaration
public string ContainsText { get; set; }
Property Value
Type Description
stringContains text.

DataLink to this section

Task items.

Declaration
public IEnumerable<TItem> Data { get; set; }
Property Value
Type Description
IEnumerable<TItem>Task items.

DayWidthPxLink to this section

Day cell width in pixels.

Declaration
public int DayWidthPx { get; set; }
Property Value
Type Description
intDay cell width in pixels.

DensityLink to this section

Gets or sets the density.

Declaration
public Density Density { get; set; }
Property Value
Type Description
DensityGets or sets the density.

DependenciesLink to this section

Optional task dependencies to draw connecting lines using object references. For database scenarios, prefer DependencyData with property-name-based binding.

Declaration
public IEnumerable<GanttDependency<TItem>> Dependencies { get; set; }
Property Value
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.

DependencyDataLink to this section

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.

Declaration
public IEnumerable<object> DependencyData { get; set; }
Property Value
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.

DependencyFromPropertyLink to this section

Property name on DependencyData items that holds the predecessor task ID (must match values of IdProperty on the task items).

Declaration
public string DependencyFromProperty { get; set; }
Property Value
Type Description
stringProperty name on DependencyData items that holds the predecessor task ID (must match values of IdProperty on the task items).

DependencyToPropertyLink to this section

Property name on DependencyData items that holds the successor task ID (must match values of IdProperty on the task items).

Declaration
public string DependencyToProperty { get; set; }
Property Value
Type Description
stringProperty name on DependencyData items that holds the successor task ID (must match values of IdProperty on the task items).

DependencyTypePropertyLink to this section

Optional property name on DependencyData items that holds the dependency type. When not set, all dependencies default to FinishToStart.

Declaration
public string DependencyTypeProperty { get; set; }
Property Value
Type Description
stringOptional property name on DependencyData items that holds the dependency type. When not set, all dependencies default to FinishToStart.

DoesNotContainTextLink to this section

Does not contain text.

Declaration
public string DoesNotContainText { get; set; }
Property Value
Type Description
stringDoes not contain text.

EditModeLink to this section

Gets or sets the edit mode.

Declaration
public DataGridEditMode EditMode { get; set; }
Property Value
Type Description
DataGridEditModeGets or sets the edit mode.

EmptyTextLink to this section

Gets or sets the empty text.

Declaration
public string EmptyText { get; set; }
Property Value
Type Description
stringGets or sets the empty text.

EndPropertyLink to this section

Property name used for task end date.

Declaration
public string EndProperty { get; set; }
Property Value
Type Description
stringProperty name used for task end date.

EndsWithTextLink to this section

Ends with text.

Declaration
public string EndsWithText { get; set; }
Property Value
Type Description
stringEnds with text.

EqualsTextLink to this section

Equals text.

Declaration
public string EqualsText { get; set; }
Property Value
Type Description
stringEquals text.

ExpandModeLink to this section

Gets or sets the expand mode for hierarchical data.

Declaration
public DataGridExpandMode ExpandMode { get; set; }
Property Value
Type Description
DataGridExpandModeGets or sets the expand mode for hierarchical data.

FilterLink to this section

Column filter callback.

Declaration
public EventCallback<DataGridColumnFilterEventArgs<TItem>> Filter { get; set; }
Property Value
Type Description
EventCallback<DataGridColumnFilterEventArgs<TItem>>Column filter callback.

FilterCaseSensitivityLink to this section

Gets or sets the filter case sensitivity.

Declaration
public FilterCaseSensitivity FilterCaseSensitivity { get; set; }
Property Value
Type Description
FilterCaseSensitivityGets or sets the filter case sensitivity.

FilterClearedLink to this section

Column filter cleared callback.

Declaration
public EventCallback<DataGridColumnFilterEventArgs<TItem>> FilterCleared { get; set; }
Property Value
Type Description
EventCallback<DataGridColumnFilterEventArgs<TItem>>Column filter cleared callback.

FilterModeLink to this section

Gets or sets the filter mode.

Declaration
public FilterMode FilterMode { get; set; }
Property Value
Type Description
FilterModeGets or sets the filter mode.

FilterPopupRenderModeLink to this section

Gets or sets the filter popup render mode.

Declaration
public PopupRenderMode FilterPopupRenderMode { get; set; }
Property Value
Type Description
PopupRenderModeGets or sets the filter popup render mode.

FilterTextLink to this section

Filter text.

Declaration
public string FilterText { get; set; }
Property Value
Type Description
stringFilter text.

FooterCellRenderLink to this section

Footer cell render callback.

Declaration
public Action<DataGridCellRenderEventArgs<TItem>> FooterCellRender { get; set; }
Property Value
Type Description
Action<DataGridCellRenderEventArgs<TItem>>Footer cell render callback.

GotoFirstPageOnSortLink to this section

Whether to go to the first page on sort. Default is false.

Declaration
public bool GotoFirstPageOnSort { get; set; }
Property Value
Type Description
boolWhether to go to the first page on sort. Default is false.

GreaterThanOrEqualsTextLink to this section

Greater than or equals text.

Declaration
public string GreaterThanOrEqualsText { get; set; }
Property Value
Type Description
stringGreater than or equals text.

GreaterThanTextLink to this section

Greater than text.

Declaration
public string GreaterThanText { get; set; }
Property Value
Type Description
stringGreater than text.

GridLinesLink to this section

Gets or sets the grid lines.

Declaration
public DataGridGridLines GridLines { get; set; }
Property Value
Type Description
DataGridGridLinesGets or sets the grid lines.

HeaderCellRenderLink to this section

Header cell render callback.

Declaration
public Action<DataGridCellRenderEventArgs<TItem>> HeaderCellRender { get; set; }
Property Value
Type Description
Action<DataGridCellRenderEventArgs<TItem>>Header cell render callback.

HeaderDateFormatLink to this section

Date format for header cells.

Declaration
public string HeaderDateFormat { get; set; }
Property Value
Type Description
stringDate format for header cells.

IdPropertyLink to this section

Property name used as unique task id.

Declaration
public string IdProperty { get; set; }
Property Value
Type Description
stringProperty name used as unique task id.

IsEmptyTextLink to this section

Is empty text.

Declaration
public string IsEmptyText { get; set; }
Property Value
Type Description
stringIs empty text.

IsLoadingLink to this section

Gets or sets whether loading indicator is shown.

public bool IsLoading { get; set; }
Property Value
Type Description
boolGets or sets whether loading indicator is shown.

IsNotEmptyTextLink to this section

Is not empty text.

Declaration
public string IsNotEmptyText { get; set; }
Property Value
Type Description
stringIs not empty text.

IsNotNullTextLink to this section

Is not null text.

Declaration
public string IsNotNullText { get; set; }
Property Value
Type Description
stringIs not null text.

IsNullTextLink to this section

Is null text.

Declaration
public string IsNullText { get; set; }
Property Value
Type Description
stringIs null text.

IsValidLink to this section

Returns whether the underlying grid has a valid edit state.

Declaration
public bool IsValid { get; }
Property Value
Type Description
boolReturns whether the underlying grid has a valid edit state.

KeyDownLink to this section

Key down callback.

Declaration
public EventCallback<KeyboardEventArgs> KeyDown { get; set; }
Property Value
Type Description
EventCallback<KeyboardEventArgs>Key down callback.

LeftPaneWidthLink to this section

Width of the left pane (CSS length).

Declaration
public string LeftPaneWidth { get; set; }
Property Value
Type Description
stringWidth of the left pane (CSS length).

LessThanOrEqualsTextLink to this section

Less than or equals text.

Declaration
public string LessThanOrEqualsText { get; set; }
Property Value
Type Description
stringLess than or equals text.

LessThanTextLink to this section

Less than text.

Declaration
public string LessThanText { get; set; }
Property Value
Type Description
stringLess than text.

LoadSettingsLink to this section

Load settings callback.

Declaration
public Action<DataGridLoadSettingsEventArgs> LoadSettings { get; set; }
Property Value
Type Description
Action<DataGridLoadSettingsEventArgs>Load settings callback.

LogicalFilterOperatorLink to this section

Gets or sets the logical filter operator.

Declaration
public LogicalFilterOperator LogicalFilterOperator { get; set; }
Property Value
Type Description
LogicalFilterOperatorGets or sets the logical filter operator.

MarkersLink to this section

Optional vertical date markers rendered on the timeline (e.g. deadlines, milestones, releases).

Declaration
public IEnumerable<GanttMarker> Markers { get; set; }
Property Value
Type Description
IEnumerable<GanttMarker>Optional vertical date markers rendered on the timeline (e.g. deadlines, milestones, releases).

NextTextLink to this section

Tooltip for the "Next" navigation button. Default is "Next".

Declaration
public string NextText { get; set; }
Property Value
Type Description
stringTooltip for the "Next" navigation button. Default is "Next".

NonWorkingDaysLink to this section

The days of the week considered non-working. Used when ShowWeekends is true. Defaults to Saturday and Sunday.

Declaration
public IEnumerable<DayOfWeek> NonWorkingDays { get; set; }
Property Value
Type Description
IEnumerable<DayOfWeek>The days of the week considered non-working. Used when ShowWeekends is true. Defaults to Saturday and Sunday.

NotEqualsTextLink to this section

Not equals text.

Declaration
public string NotEqualsText { get; set; }
Property Value
Type Description
stringNot equals text.

OrOperatorTextLink to this section

Or operator text.

Declaration
public string OrOperatorText { get; set; }
Property Value
Type Description
stringOr operator text.

PageSizeLink to this section

Page size when AllowPaging is enabled.

Declaration
public int PageSize { get; set; }
Property Value
Type Description
intPage size when AllowPaging is enabled.

PageSizeChangedLink to this section

Page size changed callback.

Declaration
public EventCallback<int> PageSizeChanged { get; set; }
Property Value
Type Description
EventCallback<int>Page size changed callback.

ParentIdPropertyLink to this section

Property name used as parent task id.

Declaration
public string ParentIdProperty { get; set; }
Property Value
Type Description
stringProperty name used as parent task id.

PickedColumnsChangedLink to this section

Picked columns changed callback.

Declaration
public EventCallback<DataGridPickedColumnsChangedEventArgs<TItem>> PickedColumnsChanged { get; set; }
Property Value
Type Description
EventCallback<DataGridPickedColumnsChangedEventArgs<TItem>>Picked columns changed callback.

PrevTextLink to this section

Tooltip for the "Previous" navigation button. Default is "Previous".

Declaration
public string PrevText { get; set; }
Property Value
Type Description
stringTooltip for the "Previous" navigation button. Default is "Previous".

ProgressPropertyLink to this section

Property name used for task progress (0..100). Optional.

Declaration
public string ProgressProperty { get; set; }
Property Value
Type Description
stringProperty name used for task progress (0..100). Optional.

RenderLink to this section

Render callback.

Declaration
public Action<DataGridRenderEventArgs<TItem>> Render { get; set; }
Property Value
Type Description
Action<DataGridRenderEventArgs<TItem>>Render callback.

ResponsiveLink to this section

Gets or sets whether grid is responsive.

Declaration
public bool Responsive { get; set; }
Property Value
Type Description
boolGets or sets whether grid is responsive.

RowClickLink to this section

Row click callback.

Declaration
public EventCallback<DataGridRowMouseEventArgs<TItem>> RowClick { get; set; }
Property Value
Type Description
EventCallback<DataGridRowMouseEventArgs<TItem>>Row click callback.

RowCollapseLink to this section

Row collapse callback.

Declaration
public EventCallback<TItem> RowCollapse { get; set; }
Property Value
Type Description
EventCallback<TItem>Row collapse callback.

RowCreateLink to this section

Row create callback.

Declaration
public EventCallback<TItem> RowCreate { get; set; }
Property Value
Type Description
EventCallback<TItem>Row create callback.

RowDeselectLink to this section

Row deselect callback.

Declaration
public EventCallback<TItem> RowDeselect { get; set; }
Property Value
Type Description
EventCallback<TItem>Row deselect callback.

RowDoubleClickLink to this section

Row double click callback.

Declaration
public EventCallback<DataGridRowMouseEventArgs<TItem>> RowDoubleClick { get; set; }
Property Value
Type Description
EventCallback<DataGridRowMouseEventArgs<TItem>>Row double click callback.

RowEditLink to this section

Row edit callback.

Declaration
public EventCallback<TItem> RowEdit { get; set; }
Property Value
Type Description
EventCallback<TItem>Row edit callback.

RowExpandLink to this section

Row expand callback.

Declaration
public EventCallback<TItem> RowExpand { get; set; }
Property Value
Type Description
EventCallback<TItem>Row expand callback.

RowHeightPxLink to this section

Row height in pixels.

Declaration
public int RowHeightPx { get; set; }
Property Value
Type Description
intRow height in pixels.

RowRenderLink to this section

Row render callback.

Declaration
public Action<RowRenderEventArgs<TItem>> RowRender { get; set; }
Property Value
Type Description
Action<RowRenderEventArgs<TItem>>Row render callback.

RowSelectLink to this section

Row select callback.

Declaration
public EventCallback<TItem> RowSelect { get; set; }
Property Value
Type Description
EventCallback<TItem>Row select callback.

RowUpdateLink to this section

Row update callback.

Declaration
public EventCallback<TItem> RowUpdate { get; set; }
Property Value
Type Description
EventCallback<TItem>Row update callback.

SettingsChangedLink to this section

Settings changed callback.

Declaration
public EventCallback<DataGridSettings> SettingsChanged { get; set; }
Property Value
Type Description
EventCallback<DataGridSettings>Settings changed callback.

ShowCellDataAsTooltipLink to this section

Gets or sets whether to show cell data as tooltip.

Declaration
public bool ShowCellDataAsTooltip { get; set; }
Property Value
Type Description
boolGets or sets whether to show cell data as tooltip.

ShowColumnTitleAsTooltipLink to this section

Gets or sets whether to show column title as tooltip.

Declaration
public bool ShowColumnTitleAsTooltip { get; set; }
Property Value
Type Description
boolGets or sets whether to show column title as tooltip.

ShowCriticalPathLink to this section

When true, highlights the critical path — the longest chain of dependent tasks that determines the project end date. Requires Dependencies to be set.

Declaration
public bool ShowCriticalPath { get; set; }
Property Value
Type Description
boolWhen true, highlights the critical path — the longest chain of dependent tasks that determines the project end date. Requires Dependencies to be set.

ShowEmptyMessageLink to this section

Gets or sets whether empty message is shown.

Declaration
public bool ShowEmptyMessage { get; set; }
Property Value
Type Description
boolGets or sets whether empty message is shown.

ShowHeaderLink to this section

Gets or sets whether header is shown.

Declaration
public bool ShowHeader { get; set; }
Property Value
Type Description
boolGets or sets whether header is shown.

ShowMultiColumnSortingIndexLink to this section

Shows multi-column sorting index. Default is false.

Declaration
public bool ShowMultiColumnSortingIndex { get; set; }
Property Value
Type Description
boolShows multi-column sorting index. Default is false.

ShowNavigationLink to this section

Shows the unified Gantt navigation header.

Declaration
public bool ShowNavigation { get; set; }
Property Value
Type Description
boolShows the unified Gantt navigation header.

ShowTodayLineLink to this section

When true, draws a vertical line on the timeline at the current date/time.

Declaration
public bool ShowTodayLine { get; set; }
Property Value
Type Description
boolWhen true, draws a vertical line on the timeline at the current date/time.

ShowWeekendsLink to this section

When true, shades non-working days (Saturday and Sunday by default) on the timeline.

Declaration
public bool ShowWeekends { get; set; }
Property Value
Type Description
boolWhen true, shades non-working days (Saturday and Sunday by default) on the timeline.

SortLink to this section

Column sort callback.

Declaration
public EventCallback<DataGridColumnSortEventArgs<TItem>> Sort { get; set; }
Property Value
Type Description
EventCallback<DataGridColumnSortEventArgs<TItem>>Column sort callback.

StartPropertyLink to this section

Property name used for task start date.

Declaration
public string StartProperty { get; set; }
Property Value
Type Description
stringProperty name used for task start date.

StartsWithTextLink to this section

Starts with text.

Declaration
public string StartsWithText { get; set; }
Property Value
Type Description
stringStarts with text.

TaskClickLink to this section

Raised when a task bar is clicked.

Declaration
public EventCallback<TItem> TaskClick { get; set; }
Property Value
Type Description
EventCallback<TItem>Raised when a task bar is clicked.

TaskMouseEnterLink to this section

Raised when the mouse enters a task bar. Commonly used to show a tooltip.

Declaration
public EventCallback<GanttTaskMouseEventArgs<TItem>> TaskMouseEnter { get; set; }
Property Value
Type Description
EventCallback<GanttTaskMouseEventArgs<TItem>>Raised when the mouse enters a task bar. Commonly used to show a tooltip.

TaskMouseLeaveLink to this section

Raised when the mouse leaves a task bar. Commonly used to close a tooltip.

Declaration
public EventCallback<GanttTaskMouseEventArgs<TItem>> TaskMouseLeave { get; set; }
Property Value
Type Description
EventCallback<GanttTaskMouseEventArgs<TItem>>Raised when the mouse leaves a task bar. Commonly used to close a tooltip.

TaskMoveLink to this section

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.

Declaration
public EventCallback<GanttTaskMovedEventArgs<TItem>> TaskMove { get; set; }
Property Value
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.

TaskRenderLink to this section

Callback to customize the appearance of each task bar. Set CssClass or Attributes to change colors or styles per task.

Declaration
public Action<GanttBarRenderEventArgs<TItem>> TaskRender { get; set; }
Property Value
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.

TaskResizeLink to this section

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.

Declaration
public EventCallback<GanttTaskMovedEventArgs<TItem>> TaskResize { get; set; }
Property Value
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.

TaskTemplateLink to this section

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.

Declaration
public RenderFragment<TItem> TaskTemplate { get; set; }
Property Value
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.

TextPropertyLink to this section

Property name used for task title (shown in the first column when no template is provided).

Declaration
public string TextProperty { get; set; }
Property Value
Type Description
stringProperty name used for task title (shown in the first column when no template is provided).

TodayTextLink to this section

Text for the "Today" navigation button. Default is "Today".

Declaration
public string TodayText { get; set; }
Property Value
Type Description
stringText for the "Today" navigation button. Default is "Today".

ViewEndLink to this section

Optional explicit timeline end.

Declaration
public DateTime? ViewEnd { get; set; }
Property Value
Type Description
DateTime?Optional explicit timeline end.

ViewStartLink to this section

Optional explicit timeline start.

Declaration
public DateTime? ViewStart { get; set; }
Property Value
Type Description
DateTime?Optional explicit timeline start.

VirtualizationOverscanCountLink to this section

Gets or sets the virtualization overscan count.

Declaration
public int VirtualizationOverscanCount { get; set; }
Property Value
Type Description
intGets or sets the virtualization overscan count.

WeeksInViewLink to this section

Number of weeks to render in Week view.

Declaration
public int WeeksInView { get; set; }
Property Value
Type Description
intNumber of weeks to render in Week view.

ZoomLevelLink to this section

Timeline zoom.

Declaration
public GanttZoomLevel ZoomLevel { get; set; }
Property Value
Type Description
GanttZoomLevelTimeline zoom.

ZoomToFitTextLink to this section

Tooltip for the "Zoom to fit" navigation button. Default is "Zoom to fit".

Declaration
public string ZoomToFitText { get; set; }
Property Value
Type Description
stringTooltip for the "Zoom to fit" navigation button. Default is "Zoom to fit".

Methods

AddContextMenuLink to this section

Declaration
protected override Task AddContextMenu()
Returns
Type Description
Task

BuildRenderTreeLink to this section

Declaration
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
Parameters
Type Name Description
Rendering.RenderTreeBuilder __builder

CancelEditRowLink to this section

Cancels edit mode for the specified item.

Declaration
public void CancelEditRow(TItem item)
Parameters
Type Name Description
TItem item The item to cancel editing for.

DisposeLink to this section

Declaration
public override void Dispose()

EditRowLink to this section

Puts the specified item in edit mode.

Declaration
public Task EditRow(TItem item)
Parameters
Type Name Description
TItem item The item to edit.
Returns
Type Description
Task

ExpandRowsLink to this section

Expands a range of rows.

Declaration
public Task ExpandRows(IEnumerable<TItem> items)
Parameters
Type Name Description
IEnumerable<TItem> items The range of rows.
Returns
Type Description
Task

GetComponentCssClassLink to this section

Declaration
protected override string GetComponentCssClass()
Returns
Type Description
string

InsertAfterRowLink to this section

Inserts a new item after the specified row in edit mode.

Declaration
public Task InsertAfterRow(TItem item, TItem afterItem)
Parameters
Type Name Description
TItem item The new item to insert.
TItem afterItem The item after which to insert.
Returns
Type Description
Task

InsertRowLink to this section

Inserts a new item into the grid in edit mode.

Declaration
public Task InsertRow(TItem item)
Parameters
Type Name Description
TItem item The item to insert.
Returns
Type Description
Task

OnAfterRenderAsyncLink to this section

Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
Type Name Description
bool firstRender
Returns
Type Description
Task

OnParametersSetLink to this section

Declaration
protected override void OnParametersSet()

ReloadLink to this section

Reloads the underlying grid data.

Declaration
public Task Reload()
Returns
Type Description
Task

UpdateRowLink to this section

Updates the specified item and exits edit mode.

Declaration
public Task UpdateRow(TItem item)
Parameters
Type Name Description
TItem item The item to update.
Returns
Type Description
Task

ZoomToFitLink to this section

Auto-calculates ViewStart and ViewEnd and selects the best zoom level so that all tasks fit in the visible timeline.

Declaration
public Task ZoomToFit()
Returns
Type Description
Task
An error has occurred. This app may no longer respond until reloaded. Reload 🗙