menu

Blazor

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

    Show / Hide Table of Contents

    Class GanttResourceFields<TResources>

    Defines mapping properties for resource values.

    Inheritance
    System.Object
    SfBaseComponent
    SfDataBoundComponent
    GanttResourceFields<TResources>
    Inherited Members
    SfBaseComponent.Dispose()
    SfBaseComponent.Dispose(Boolean)
    SfBaseComponent.OnObservableChange(String, Object, Boolean, NotifyCollectionChangedEventArgs)
    SfDataBoundComponent.DataManager
    SfDataBoundComponent.MainParent
    SfDataBoundComponent.OnAfterRenderAsync(Boolean)
    SfDataBoundComponent.SetDataManager<T>(Object)
    Namespace: Syncfusion.Blazor.Gantt
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class GanttResourceFields<TResources> : SfDataBoundComponent
    Type Parameters
    Name Description
    TResources

    Specifies the type of GanttResourceFields.

    Constructors

    GanttResourceFields()

    Declaration
    public GanttResourceFields()

    Properties

    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 id of resource from resource collection.

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

    A string that represents the identifier for the task.

    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.

    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.

    Resources

    Gets or sets the resources to be rendered on the gantt chart component. Resources value was defined as array of JavaScript objects or instances of Resources.

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

    An enumerable collection of resources defined as an array of JavaScript objects or instances of TResources.

    Remarks

    The resources property is used to specify a set of resources to be rendered on the Gantt chart. This can include anything from people, equipment, or facilities to anything else required for the project. The Resources property can be defined as an array of JavaScript objects or instances of the generic type TResources.

    Unit

    Gets or sets the unit of work done by the resource for the task.

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

    A string that represents the unit of work done by the resource for the task.

    Remarks

    When the resource unit is defined in resource collection, the amount of work done by that particular resource will be the same for all the tasks.

    Methods

    BuildRenderTree(RenderTreeBuilder)

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

    OnInitializedAsync()

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

    OnParametersSetAsync()

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