Taskbar in ASP.NET Core Gantt Chart Component
18 Nov 20182 minutes to read
Taskbar template
You can design your own taskbars to view the tasks in Gantt by using TaskbarTemplate property. And it is possible to map the template script element’s ID value to this property. It is also possible to customize the parent taskbars and milestones with custom templates by using ParentTaskbarTemplate and MilestoneTemplate properties.

Taskbar customization
Taskbar Height
Height of child taskbars and parent taskbars can be customized by using TaskbarHeight property. The following code example shows how to use the property.

NOTE
The
TaskbarHeightvalue should be lower than theRowHeightproperty value and these properties accept only pixel values.
Conditional formatting
The default taskbar UI can be replaced with custom templates using the QueryTaskbarInfo event. The following code example shows customizing the taskbar UI based on task progress values in the Gantt control.

Change gripper icon in taskbar
You can change the gripper icon in the taskbar by applying styles to their respective class elements.
![]()
Multi Taskbar support in project view
The Gantt component, supports rendering multi-taskbars in the project view. With this feature the parent taskbar, when it is collapsed, visually summarize the progress of all its child taskbars.
This feature can be enabled by setting the EnableMultiTaskbar property value to true.
The following code example shows how to use this property.

Connector lines
The width and background color of connector lines in Gantt can be customized using the ConnectorLineWidth and ConnectorLineBackground properties. The following code example shows how to use these properties.

Tooltip
In the Gantt control, you can enable or disable the mouse hover tooltip for the following UI elements using the TooltipSettings.ShowTooltip property:
- Taskbar
- Connector line
- Baseline
- Event marker

Taskbar Tooltip

Dependency Tooltip

Baseline Tooltip

Event Marker Tooltip
NOTE
The default value of the
TooltipSettings.ShowTooltipproperty is true.
Tooltip template
Taskbar tooltip
The default tooltip in the Gantt control can be customized using the TooltipSettings.Taskbar property. You can map the template script element’s ID value or template string directly to this property.
The below screenshot shows the output of above code example.

Baseline tooltip
A baseline tooltip can be customized using the TooltipSettings.Baseline property. The following code example shows how to customize the baseline tooltip in Gantt.
The following screenshot shows the template for baseline in Gantt.

Connector line tooltip
The default connector line tooltip in the Gantt control can be customized using the TooltipSettings.ConnectorLine property. You can map the value to this property as template script element ID or template string format. The following code example shows how to use the TooltipSettings.ConnectorLine property.
The below screenshot shows the output of above code example.

Timeline tooltip
A timeline tooltip can be customized using the TooltipSettings.Timeline property. This allows modifying the appearance and content of the tooltip displayed over the timeline. The following code example shows how to customize the timeline tooltip in Gantt.
The below screenshot shows the output of above code example.
