Skip to main content
A newer version of this page is available. .

Dependency

Dependencies specify relationships between tasks.

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.

Start to Start (SS)

The predecessor task’s start point specifies the successor task’s start point.

Finish to Finish (FF)

The predecessor task’s end point specifies the successor task’s end point.

Start to Finish (SF)

The predecessor task’s start point specifies the successor task’s end point.

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>

Online Demo: ASPxGantt - Validation

Examples

See Also

Online Demos