Skip to main content

Dependency

Dependencies specify relationships between tasks.

Gantt - Dependencies

The Gantt supports the following dependency types:

Dependency type

Description

Finish to Start (FS)

The predecessor task’s endpoint specifies the successor task’s start point.
Gantt - Dependency - Finish to Start

Start to Start (SS)

The predecessor task’s start point specifies the successor task’s start point.
Gantt - Dependency - Start to Start

Finish to Finish (FF)

The predecessor task’s end point specifies the successor task’s end point.
Gantt - Dependency - Finish to Finish

Start to Finish (SF)

The predecessor task’s start point specifies the successor task’s end point.
Gantt - Dependency - Start to Finish

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>

Run Demo: ASPxGantt - Validation

Examples

See Also

See Also