aspnet-devexpress-dot-web-dot-aspxgantt-dot-ganttvalidationsettings.md
Enables task dependencies validation.
Namespace : DevExpress.Web.ASPxGantt
Assembly : DevExpress.Web.ASPxGantt.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(false)]
public bool EnableDependencyValidation { get; set; }
<DefaultValue(False)>
Public Property EnableDependencyValidation As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true, to validate task dependencies; otherwise, false.
|
You can access this nested property as listed below:
| Library | Object Type | Path to EnableDependencyValidation |
|---|---|---|
| ASP.NET MVC Extensions | GanttSettings |
.SettingsValidation .EnableDependencyValidation
| | ASP.NET Web Forms Controls | ASPxGantt |
.SettingsValidation .EnableDependencyValidation
|
Set the EnableDependencyValidation property to true to enable dependency rules validation.
Web Forms:
Run Demo: ASPxGantt - Validation
<dx:ASPxGantt ID="Gantt" >
...
<SettingsValidation EnableDependencyValidation="true" />
</dx:ASPxGantt>
MVC:
Run Demo: MVCxGantt - Validation
@Html.DevExpress().Gantt(settings => {
settings.Name = "gantt";
settings.SettingsValidation.EnableDependencyValidation = true;
...
}).Bind(
GanttDataProvider.Tasks,
GanttDataProvider.Dependencies,
GanttDataProvider.Resources,
GanttDataProvider.ResourceAssignments
).GetHtml()
See Also