Gantt Chart / Resource / Resource Allocation

Blazor Gantt Chart Example - Resource Allocation Management

Loading Syncfusion Blazor Server Demos…

This sample demonstrates resource allocation in the Blazor Gantt Chart. Tasks can be assigned to one or many resources based on work requirements, and the total work (labor hours) remains in sync with duration and unit changes.

Editing a task opens resource pickers that draw from a predefined roster. Assigned resource identifiers flow into the resource assignment collection, and labels are surfaced inside the timeline using LabelSettings property.

Configure resource metadata through the GanttResource component with the following properties:

  • Id � Maps the resource ID.
  • Name � Maps the resource name.
  • MaxUnits � Defines the maximum allocation units for a resource.
  • DataSource � Specifies the data source for resource mapping.

Resource assignments are linked through GanttAssignmentFields component with the following properties:

  • PrimaryKey � Maps the primary key field.
  • TaskID � Maps the task identifier.
  • ResourceID � Maps the resource identifier.
  • DataSource � Specifies the data source for resource assignment mapping.

Work, duration, and units remain interdependent unless you fix one of them using TaskType property of GanttTaskFields:

  • FixedDuration � The duration task field will remain constant while updating resource units or the work field.
  • FixedWork � The work field will remain constant while updating resource units or duration fields.
  • FixedUnit � Resource units will remain constant while updating duration or work fields.

Map Work directly from the data source through the Work property of GanttTaskFields. The component automatically recalculates finish dates using the defined work and unit values. Adjust the measurement scale (hours, days, or minutes) via the WorkUnit property.

The toolbar provides built-in options for add, update, delete, expand, and collapse operations, enabling interactive task management.

For further details, refer to the documentation.

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