TaskDataColumn.TaskField Property
Specifies the column’s task field.
Namespace: DevExpress.Web.ASPxGantt
Assembly: DevExpress.Web.ASPxGantt.v19.2.dll
Declaration
[DefaultValue(ColumnSortOrder.None)]
public virtual GanttTaskField TaskField { get; set; }
Property Value
Type | Default | Description |
---|---|---|
GanttTaskField | **None** | One of the enumeration values. |
Available values:
Name | Description |
---|---|
Key | A task ID. |
ParentKey | A task’s parent ID. |
Title | A task’s title. |
Start | A task’s start date. |
End | A task’s end date. |
Progress | A task’s progress. |
Remarks
Use the TaskField property to specify task fields for a column in the task list.
<dx:ASPxGantt ID="Gantt" runat="server" Height="700" Width="100%"
TasksDataSourceID="TasksDataSource"
DependenciesDataSourceID="DependenciesDataSource"
ResourcesDataSourceID="ResourcesDataSource"
ResourceAssignmentsDataSourceID="ResourceAssignmentsDataSource">
<SettingsTasksList Width="45%">
<Columns>
<dx:TaskDataColumn TaskField="Title" Width="260" />
<dx:TaskDataColumn TaskField="Start" Width="100" DisplayFormat="MM\/dd\/yyyy" />
<dx:TaskDataColumn TaskField="End" Width="100" DisplayFormat="MM\/dd\/yyyy" />
</Columns>
</SettingsTasksList>
<Mappings>
<Task Key="ID" ParentKey="ParentID" Title="Subject" Start="StartDate" End="EndDate" Progress="PercentComplete" />
<Dependency Key="ID" PredecessorKey="ParentID" SuccessorKey="DependentID" DependencyType="Type" />
<Resource Key="ID" Name="Name" />
<ResourceAssignment Key="ID" TaskKey="TaskID" ResourceKey="ResourceID" />
</Mappings>
</dx:ASPxGantt>
See Also