Class GanttAssignmentFields<TValue, TAssignment>
Represents a class that defines the mapping of field names in the data object of the resource assignment collection.
The resource assignment collection holds the relationship details between tasks and resources data.
Inheritance
Namespace: Syncfusion.Blazor.Gantt
Assembly: Syncfusion.Blazor.dll
Syntax
public class GanttAssignmentFields<TValue, TAssignment> : OwningComponentBase
Type Parameters
Name | Description |
---|---|
TValue | Specifies the type of the task collection data source in the Gantt chart. |
TAssignment | Specifies the type of the resource assignment collection data source. |
Constructors
GanttAssignmentFields()
Declaration
public GanttAssignmentFields()
Properties
DataManager
Gets or sets an instance of the DataManager class, providing functionality for data operations in applications.
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 for resource assignments
DataSource
Gets or sets the data source of the resource assignment collection.
Declaration
public IEnumerable<TAssignment> DataSource { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TAssignment> | The data source value can be of any type that implements IEnumerable. |
Remarks
To consume data from a remote service or custom adaptor, use the SfDataManager component. For more information, refer to the documentation here.
PrimaryKey
Gets or sets the primary key property name for the data source.
Declaration
public string PrimaryKey { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the primary key property. This property is used to uniquely identify each record in the data source. |
Remarks
The PrimaryKey is crucial for operations that require unique identification of records, such as data manipulation and retrieval.
ResourceAssignmentChanging
Gets or sets an event callback that is raised when the resource for a task is modified.
Declaration
public EventCallback<ResourceAssignmentChangeEventArgs<TAssignment>> ResourceAssignmentChanging { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ResourceAssignmentChangeEventArgs<TAssignment>> | An event callback function. |
Remarks
The event handler receives a ResourceAssignmentChangeEventArgs<TAssignment> object, which provides details about the resource assignment collections. ///
ResourceID
Gets or sets the name of the resource ID field in the resource assignment collection.
Declaration
public string ResourceID { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the resource ID property that specifies the primary Id value of the resource collection. |
Remarks
This property enables the user to establish a relationship between the resource collection and the resource assignment collection by specifying the resource ID as a ResourceID property.
TaskID
Gets or sets the name of the task ID field in the resource assignment collection of the Gantt Chart.
Declaration
public string TaskID { get; set; }
Property Value
Type | Description |
---|---|
System.String | The field name that specifies the primary Id value in the task collection datasource |
Remarks
This property allows the user to establish a relationship between the task collection and the resource assignment collection by specifying the task ID as the TaskID property.
Units
Gets or sets the name of the unit property in the resource assignment collection in the Gantt Chart.
Declaration
public string Units { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the resource units property that specifies the resource units of the resource collection in the |
Remarks
Use this property to specify the percentage of time or quantity dedicated to a task for a work or resource.
Examples: - Specify 100% if the resource is to work full-time on the assignment. This is the default for all assignments. - Specify 50% if the resource is spending half the available time on this assignment. - Specify 300% if three full-time equivalent resources are working on this assignment. - Specify 250% if two full-time resources and one half-time resource are working on this assignment.
When you want to specify how much of a work resource's time is dedicated to a specific task, or indicate the quantity of material for an assignment, use this property to define assignment units.
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 |
OnAfterRenderAsync(Boolean)
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | firstRender |
Returns
Type |
---|
System.Threading.Tasks.Task |
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |
OnParametersSetAsync()
Declaration
protected override Task OnParametersSetAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |