Back to Devexpress

GanttValidationSettings.EnablePredecessorGap Property

aspnet-devexpress-dot-web-dot-aspxgantt-dot-ganttvalidationsettings-b1e52745.md

latest3.2 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(false)]
public bool EnablePredecessorGap { get; set; }
vb
<DefaultValue(False)>
Public Property EnablePredecessorGap As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to EnablePredecessorGap
ASP.NET MVC ExtensionsGanttSettings

.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:

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.

aspx
<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

GanttValidationSettings

GanttValidationSettings Members

DevExpress.Web.ASPxGantt Namespace