Skip to main content
All docs
V24.1

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.v24.1.dll

NuGet Package: DevExpress.Web

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 Web Forms Controls ASPxGantt
.SettingsValidation .EnablePredecessorGap
ASP.NET MVC Extensions GanttSettings
.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