Class GanttTaskFields
Configures Gantt taskfields column.
Inheritance
Namespace: Syncfusion.Blazor.Gantt
Assembly: Syncfusion.Blazor.dll
Syntax
public class GanttTaskFields : ComponentBase
Constructors
GanttTaskFields()
Declaration
public GanttTaskFields()
Properties
BaselineEndDate
Specifies the name of the data source field that contains the baseline end date of the task.
Declaration
public string BaselineEndDate { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies the name of the data source field that contains the baseline end date of the task. |
Remarks
This property is used to map the baseline end date of a task from a data source. The baseline end date is a reference date that is used to compare the actual end date of the task to the planned end date. By default, the property is empty, indicating that no mapping is performed. If a data source field is specified, it must contain valid date values. If an invalid or non-existent field name is provided, an exception may be thrown during runtime. This property is only applicable when the task data is loaded from a data source.
BaselineStartDate
Specifies the name of the data source field that contains the baseline start date of the task.
Declaration
public string BaselineStartDate { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies the name of the data source field that contains the baseline start date of the task. |
Remarks
This property is used to map the baseline start date of a task from a data source. The baseline start date is a reference date that is used to compare the actual start date of the task to the planned start date. By default, the property is empty, indicating that no mapping is performed. If a data source field is specified, it must contain valid date values. If an invalid or non-existent field name is provided, an exception may be thrown during runtime. This property is only applicable when the task data is loaded from a data source.
Child
Specifies the name of the data source field that contains the child tasks of the current task.
Declaration
public string Child { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies the name of the data source field that contains the child tasks of the current task. |
Remarks
This property is used to map the child tasks of a task from a data source. Child tasks are tasks that are part of a larger parent task. By default, the property is empty, indicating that no mapping is performed. If a data source field is specified, it must contain valid task IDs that match the parent task ID of the current task. If an invalid or non-existent field name is provided, an exception may be thrown during runtime. This property is only applicable when the task data is loaded from a data source.
CssClass
Specifies the name of the data source field that contains the custom CSS class for the current task.
Declaration
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies the name of the data source field that contains the custom CSS class for the current task. |
Remarks
This property is used to map the custom CSS class of a task from a data source. By default, the property is empty, indicating that no mapping is performed. If a data source field is specified, it must contain valid CSS class names. If an invalid or non-existent field name is provided, an exception may be thrown during runtime. This property is only applicable when the task data is loaded from a data source. The custom CSS class is used to customize the appearance of the task in the UI.
Dependency
Gets or sets the name of the field that maps dependencies of tasks on initial load.
Declaration
public string Dependency { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that represents the name of the field in the data source. |
Remarks
This property is used to define dependencies between tasks in a workflow or process, where one task must be completed before another can start. Task relationships are categorized into four types based on the start and finish dates of the task. The available types are FS,SS,SF,FF. By setting this property to the name of the corresponding field in the data source, the system can automatically determine the order in which tasks should be executed based on their dependencies.
Duration
Specifies the name of the data source field that contains the duration information for the task.
Declaration
public string Duration { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies the name of the data source field that contains the duration information for the task. |
Remarks
This property is used to map the task duration from a data source. Duration is the amount of time it takes to complete a task. By default, the property is empty, indicating that no mapping is performed. If a data source field is specified, it must contain valid duration values in a format that can be parsed by the system. If an invalid or non-existent field name is provided, an exception may be thrown during runtime. This property is only applicable when the task data is loaded from a data source.
DurationUnit
Specifies the name of the data source field that contains the duration unit information for the task.
Declaration
public string DurationUnit { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies the name of the data source field that contains the duration unit information for the task. |
Remarks
This property is used to map the task duration unit from a data source. Duration unit is the unit of time used to measure the task duration, such as days, hours, or minutes. By default, the property is empty, indicating that no mapping is performed. If a data source field is specified, it must contain valid duration unit values that can be recognized by the system. If an invalid or non-existent field name is provided, an exception may be thrown during runtime. This property is only applicable when the task data is loaded from a data source.
EndDate
Specifies the name of the data source field that contains the end date information for the task.
Declaration
public string EndDate { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies the name of the data source field that contains the end date information for the task. |
Remarks
This property is used to map the task end date from a data source. End date is the date when the task is expected to be completed. By default, the property is empty, indicating that no mapping is performed. If a data source field is specified, it must contain valid date values in a format that can be recognized by the system. If an invalid or non-existent field name is provided, an exception may be thrown during runtime. This property is only applicable when the task data is loaded from a data source.
ExpandState
Specifies the name of the data source field that contains the expand status information for the parent record.
Declaration
public string ExpandState { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies the name of the data source field that contains the expand status information for the parent record. |
Remarks
This property is used to map the expand status of the parent record from a data source. The expand status indicates whether the parent record is expanded or collapsed by default when the Gantt chart is loaded. By default, the property is empty, indicating that no mapping is performed. If a data source field is specified, it must contain valid expand status values that can be recognized by the system. If an invalid or non-existent field name is provided, an exception may be thrown during runtime. This property is only applicable to parent records.
HasChildMapping
Gets or sets a field name of data object in data source that specifies whether the current record has child records.
Declaration
public string HasChildMapping { get; set; }
Property Value
Type | Description |
---|---|
System.String | Field name in data object of data source which denotes whether current record holds any child records. The default value is null. |
Remarks
It is applicable only when LoadChildOnDemand property is enabled to handle the record as parent item.
Id
Specifies the name of the data source field that contains the ID information for the task.
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies the name of the data source field that contains the ID information for the task. |
Remarks
This property is used to map the task ID from a data source. The ID is a unique identifier that is assigned to the task. By default, the property is empty, indicating that no mapping is performed. If a data source field is specified, it must contain valid ID values that can be recognized by the system.
Indicators
Gets or sets the indicators of the task from the data source.
Declaration
public string Indicators { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String value representing the indicators of the task. The default value is an empty string. |
Remarks
This property is used to map the indicators of the task from the data source. If this property is not set or is set to an empty string, the task will not have any indicators associated with it.
Manual
Gets or sets the schedule mode of the task from the data source.
Declaration
public string Manual { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String value representing the schedule mode of the task. The default value is an empty string. |
Remarks
This property is used to map the schedule mode of the task from the data source. The value of this property can be set to a string value indicating whether the task should be run manually or on a schedule. If this property is not set or is set to an empty string, the task will not have a schedule mode associated with it.
Milestone
Gets or sets the milestone of the task from the data source.
Declaration
public string Milestone { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String value representing the milestone of the task. The default value is an empty string. |
Remarks
This property is used to map the milestone of the task from the data source. The value of this property can be set to a string value indicating the name of the milestone associated with the task. If this property is not set or is set to an empty string, the task will not have a milestone associated with it.
Name
Gets or sets the name of the task from the data source.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String value representing the name of the task. The default value is an empty string. |
Remarks
This property is used to map the name of the task from the data source. The value of this property can be set to a string value indicating the name of the task. If this property is not set or is set to an empty string, the task will not have a name associated with it.
Notes
Gets or sets the notes value of the task from the data source.
Declaration
public string Notes { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String value representing the notes value of the task. The default value is an empty string. |
Remarks
This property is used to map the notes value of the task from the data source. The value of this property can be set to a string value indicating the notes associated with the task. If this property is not set or is set to an empty string, the task will not have any notes associated with it.
ParentID
Gets or sets the parent ID of the task from the data source.
Declaration
public string ParentID { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String value representing the parent ID of the task. The default value is an empty string. |
Remarks
This property is used to map the parent ID of the task from the data source. The value of this property can be set to a string value indicating the parent ID associated with the task. If this property is not set or is set to an empty string, the task will not have a parent ID associated with it.
Progress
Gets or sets the progress of the task from the data source.
Declaration
public string Progress { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String value representing the progress of the task. The default value is an empty string. |
Remarks
This property is used to map the progress of the task from the data source. The value of this property can be set to a string value indicating the progress of the task. If this property is not set or is set to an empty string, the task will not have any progress associated with it.
ResourceInfo
Gets or sets the assigned resources of the task from the data source.
Declaration
public string ResourceInfo { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String value representing the assigned resources of the task. The default value is an empty string. |
Remarks
This property is used to map the assigned resources of the task from the data source. The value of this property can be set to a string value indicating the assigned resources associated with the task. If this property is not set or is set to an empty string, the task will not have any assigned resources associated with it.
StartDate
Gets or sets the start date of the task from the data source.
Declaration
public string StartDate { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String value representing the start date of the task. The default value is an empty string. |
Remarks
This property is used to map the start date of the task from the data source. The value of this property can be set to a string value indicating the start date of the task. If this property is not set or is set to an empty string, the task will not have a start date associated with it.
TaskType
Gets or sets the task type value of the task from the data source.
Declaration
public string TaskType { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String value representing the task type of the task. The default value is an empty string. |
Remarks
This property is used to map the task type value of the task from the data source. The value of this property can be set to a string value indicating the task type of the task. If this property is not set or is set to an empty string, the task will not have a task type associated with it.
Work
Gets or sets the work of the task to map from the data source.
Declaration
public string Work { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the work of the task. The default value is an empty string. |
Remarks
This property is used to map the work of a task from the data source to a property in the code. The value of this property should be set to a string that represents the work of the task, typically in hours or days.
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 |
OnParametersSetAsync()
Declaration
protected override Task OnParametersSetAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |