ASPxGantt.Mappings Property
Provides access to the object that contains a set of gantt’s properties mappings.
Namespace: DevExpress.Web.ASPxGantt
Assembly: DevExpress.Web.ASPxTreeList.v19.1.dll
Declaration
Property Value
Type | Description |
---|---|
ASPxGanttMappings | Provides functionality for mapping properties to appropriate data fields. |
Remarks
Mappings specify what field in a data source corresponds to an object’s task, dependency or resource property.
Concept
Example
<dx:ASPxGantt ID="Gantt" runat="server" Width="100%" ClientInstanceName="clientGantt"
KeyFieldName="ID" ParentFieldName="ParentID"
TasksDataSourceID="TasksDataSource"
DependenciesDataSourceID="DependenciesDataSource"
ResourcesDataSourceID="ResourcesDataSource"
ResourceAssignmentsDataSourceID="ResourceAssignmentsDataSource">
<Columns>
...
</Columns>
<Mappings>
<Task ID="ID" ParentID="ParentID" Title="Subject" Start="StartDate" End="EndDate" Progress="PercentComplete" />
<Dependency ID="ID" PredecessorID="ParentID" SuccessorID="DependentID" DependencyType="Type" />
<Resource ID="ID" Name="Name" />
<ResourceAssignment ID="ID" TaskID="TaskID" ResourceID="TeamID" />
</Mappings>
</dx:ASPxGantt>
Online Demo
See Also