All docs
V20.2
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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