menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GanttResource<TValue, TResources> - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GanttResource<TValue, TResources>

    Represents a class that manages the mapping of resource data source fields to the Gantt chart. Specifies the type of the task collection data source in the Gantt chart. Specifies the type of the resource data source.  

    Inheritance
    System.Object
    GanttResource<TValue, TResources>
    Namespace: Syncfusion.Blazor.Gantt
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class GanttResource<TValue, TResources> : OwningComponentBase
    Type Parameters
    Name
    TValue
    TResources

    Constructors

    GanttResource()

    Declaration
    public GanttResource()

    Properties

    DataManager

    Gets or sets an instance of the DataManager class, providing functionality for data operations in applications.  DataManager serves as an abstraction layer for working with remote data sources. 

    Declaration
    public DataManager DataManager { get; set; }
    Property Value
    Type Description
    DataManager

    An instance of the DataManager class.

    Remarks

    DataManager facilitates interactions with remote data sources, allowing seamless integration and manipulation of data in applications. 

    DataSource

    Gets or sets the data source of the resource collection.

    Declaration
    public IEnumerable<TResources> DataSource { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<TResources>

    The data source value can be of any type that implements System.Collections.IEnumerable.

    Remarks

    To consume data from a remote service or custom adaptor, use the SfDataManager component. For more information, refer to the documentation here.

    Group

    Gets or sets the name of the field in the data source that will be used to group resources in the Gantt Chart. When this field is mapped, resources will be displayed with a group column in the Task Information view.

    Declaration
    public string Group { get; set; }
    Property Value
    Type Description
    System.String

    A string value representing the name of the field in the data source that will be used to group resources.

    Id

    Gets or sets the ID of the resource from the resource collection.

    Declaration
    public string Id { get; set; }
    Property Value
    Type Description
    System.String

    A string representing the identifier for the resource.

    Remarks

    This property allows the user to specify the identifier of resource from resource collection. The default value is null, and it should be a non-null value in order to identify the resource.

    MaxUnits

    Gets or sets the name of the MaxUnits field in the resource collection of the Gantt Chart.

    Declaration
    public string MaxUnits { get; set; }
    Property Value
    Type Description
    System.String

    The name of the property in the data object of the resources collection, provided through the DataSource property.

    Remarks

    When you want to specify how much time a work resource has available for work on all tasks in a project. The Max Units field contains the maximum percentage or number of units representing the maximum capacity for which a resource is available to accomplish any tasks during the current time period. The default for the Max Units field is 100 percent.

    Name

    Gets or sets the name of the resource for the task.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    System.String

    The name of the resource. The default value is an empty string.

    Remarks

    This property is used to map the name of the particular resource for the task. The value of the Name property must be a string that matches the name of the resource.

    Methods

    BuildRenderTree(RenderTreeBuilder)

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

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    OnInitializedAsync()

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type
    System.Threading.Tasks.Task

    OnParametersSetAsync()

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type
    System.Threading.Tasks.Task
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved