Blazor Gantt Chart Example - Resource-Centric View

Gantt Chart / Resource / Resource View

This sample explains the resource breakdown view in the Gantt chart, which is how to visualize the list of tasks assigned to each resource in a hierarchical manner and switch the resources as per the user's needs by task editing mode. If no resources are mapped to a task, then it will come under the “Unassigned Tasks” category. This feature can be enabled by setting the ViewType to ResourceView.

When a resource is assigned two or more tasks that are scheduled on the same date, this is termed overallocation for the resource. The number of overallocation dates is highlighted in square brackets. This feature can be enabled by setting ShowOverallocation to true. The following sample demonstrates the overallocation of a resource.

Loading Syncfusion Blazor Server Demos…

In this example, you can plan and allocate resources to tasks in the project based on task complexity and resource availability. The user can also assign resources to tasks with no resources by row drag and drop. To achieve this action, set the AllowRowDragAndDrop property to true. In this demo, there is a set of predefined resources, and those IDs are assigned to the resource assignment collection. Resource information can be shown in a Gantt chart by using the LabelSettings property.

Resources can be mapped using GanttResource component with the following properties:

  • Id - To map resource ID
  • Name - To map resource name
  • MaxUnits - To map resource unit
  • DataSource - To map resource data source

Resource assignment can be mapped using GanttAssignmentFields component with the following properties:

  • PrimaryKey - To map primary key
  • TaskID - To map task ID
  • ResourceID - To map resource ID
  • DataSource - To map resource assignment data source

By utilizing the toggle button in this example, you can effortlessly transition between the resource view and project view, enabling you to conveniently access the desired perspective and make well-informed decisions based on the available information.

More information about resource view in Gantt can be found in this documentation section.

Transform your Blazor web apps today with Syncfusion® Blazor components
145+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE