Back to Devexpress

Dependency

aspnetmvc-401556-components-gantt-gantt-elements-dependency.md

latest1.8 KB
Original Source

Dependency

  • May 11, 2021

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 table (Bind(Object, Object, Object, Object)). Use the GanttMappings.Dependency object to specify which fields in the data table correspond to dependency properties.

csharp
settings.Mappings.Dependency.Key = "ID";
settings.Mappings.Dependency.PredecessorKey = "ParentID";
settings.Mappings.Dependency.SuccessorKey = "DependentID";
settings.Mappings.Dependency.DependencyType = "Type";

Online Demos