All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
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.

GanttValidationSettings.EnablePredecessorGap Property

Specifies whether users can move or resize a predecessor to change a gap before a successor according to the dependency rules.

Namespace: DevExpress.Web.ASPxGantt

Assembly: DevExpress.Web.ASPxGantt.v21.1.dll

Declaration

[DefaultValue(false)]
public bool EnablePredecessorGap { get; set; }

Property Value

Type Default Description
Boolean

false

true to change the gap between tasks; otherwise, false.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to EnablePredecessorGap
ASP.NET MVC Extensions GanttSettings
.SettingsValidation.EnablePredecessorGap
MVCxGantt
.SettingsValidation.EnablePredecessorGap
ASP.NET Web Forms Controls ASPxGantt
.SettingsValidation.EnablePredecessorGap

Remarks

According to the dependency rules, the Gantt control allows users to change the gap between tasks only if they move/resize a successor task. Note that users can use only a successor to create the gap between tasks.

The following image illustrates that the Gantt does not resize the gap between tasks when users move the predecessor:

ASPxGantt - Create a gap

The EnablePredecessorGap property allows users to increase/decrease the gap between the tasks with a predecessor. The Gantt control validates these changes and shifts the successor task to comply with the dependency rules if they are violated.

EnablePredecessorGap Event

<dx:ASPxGantt ID="Gantt" runat="server" ClientInstanceName="clientGantt" EnableViewState="false" ...>
    <SettingsValidation EnableDependencyValidation="true" EnablePredecessorGap="true" />
    <!--...-->
</dx:ASPxGantt>

Note

The EnablePredecessorGap property is in effect if the EnableDependencyValidation property is set to true.

See Also