Dependency
- 2 minutes to read
Dependencies specify relationships between tasks.
The Gantt supports the following dependency types:
Dependency type | Description | Supported Values |
---|---|---|
Finish to Start (FS) | The predecessor task’s endpoint specifies the successor task’s start point. | 0, “0”, “FS”, “fs” |
Start to Start (SS) | The predecessor task’s start point specifies the successor task’s start point. | 1, “1”, “SS”, “ss” |
Finish to Finish (FF) | The predecessor task’s end point specifies the successor task’s end point. | 2, “2”, “FF”, “ff” |
Start to Finish (SF) | The predecessor task’s start point specifies the successor task’s end point. | 3, “3”, “SF”, “sf” |
The Gantt gets data for dependencies from a data source (DependenciesDataSourceID). Use the Dependency object to specify which fields in the data source correspond to dependency properties.
<dx:ASPxGantt ID="Gantt" runat="server" DependenciesDataSourceID="DependenciesDataSource" ... >
<Mappings>
<Dependency Key="ID" PredecessorKey="ParentID" SuccessorKey="DependentID" DependencyType="Type" />
<!--. .. -->
</Mappings>
<!-- ... -->
</dx:ASPxGantt>
<asp:SqlDataSource ID="DependenciesDataSource" runat="server"
ConnectionString='<%$ ConnectionStrings:DevelopmentGanttConnectionString %>'
SelectCommand="SELECT * FROM [TaskDependencies]" />
Use the EnableDependencyValidation property to validate relationships between tasks when they are edited.
<dx:ASPxGantt ID="Gantt" >
<!-- ... -->
<SettingsValidation EnableDependencyValidation="true" />
</dx:ASPxGantt>