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

GanttValidationSettings Class

Accesses validation settings.

Namespace: DevExpress.Web.ASPxGantt

Assembly: DevExpress.Web.ASPxGantt.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

public class GanttValidationSettings :
    GanttSettingsBase

The following members return GanttValidationSettings objects:

Library Related API Members
ASP.NET Controls and MVC Extensions ASPxGantt.SettingsValidation
ASP.NET MVC Extensions GanttSettings.SettingsValidation

Remarks

The ASPxGantt allows you to validate relationships between tasks when they are edited.

Dependency Rules Validation

Set the EnableDependencyValidation property to true to enable dependency rules validation.

<dx:ASPxGantt ID="Gantt" >
    ...
    <SettingsValidation EnableDependencyValidation="true" />
</dx:ASPxGantt>

The Gantt supports the following dependency types:

Dependency Type

Dependency Rule

Finish to Start (FS)

A successor task’s start point should equal a predecessor task’s endpoint.
DevExpress ASP.NET Web Forms Gantt - Dependency - Finish-To-Start

Start to Start (SS)

A successor and predecessor tasks should start at the same time.
DevExpress ASP.NET Web Forms Gantt - Dependency - Start-To-Start

Finish to Finish (FF)

A successor and predecessor tasks should end at the same time.
DevExpress ASP.NET Web Forms Gantt - Dependency - Finish-To-Finish

Start to Finish (SF)

A successor task’s end point should equal a predecessor task’s start point.
DevExpress ASP.NET Web Forms Gantt - Dependency - Start-To-Finish

The table below illustrates how the Gantt control handles user actions that violate dependency rules.

User Action

Dependency Type

Gantt’s Reaction

Move a predecessor task (Task 1) to the left or right.

Finish to Start (FS):

Start to Start (SS):

Start to Finish (SF):

Finish to Finish (FF):

The control moves a successor task (Task 2) forward or backward to the same time interval.

Move a successor task (Task 2) to the left.

Finish to Start (FS):

Start to Start (SS):

Start to Finish (SF):

Finish to Finish (FF):

This change is denied as it violates dependency rules.

The control displays a popup window and suggests the following actions:

  • Decline the change.
  • Remove the dependency.

Move a successor task (Task 2) to the right.

Finish to Start (FS):

Start to Start (SS):

Start to Finish (SF):

Finish to Finish (FF):

The control displays a popup window and suggests the following actions:

  • Decline the change.
  • Remove the dependency.
  • Apply the change. It creates a gap between tasks. Note that you can move tasks forward and backward within this gap while it meets the dependency rules.

Parent-Child Relationship Validation

Set the AutoUpdateParentTasks property to true to enable validation for parent&child relationships.

<dx:ASPxGantt ID="Gantt" >
    ...
    <SettingsValidation AutoUpdateParentTasks="true" />
</dx:ASPxGantt>

The Gantt control supports the following rules for parent&child relationships validation:

  • A parent task’s duration equals a summary duration of its child tasks.
  • A parent task and its first child starts at the same time.
  • A parent task and its last child ends at the same time.
  • A parent task’s progress is a summary progress of its child tasks.

Online Demos

Implements

Inheritance

See Also