Back to Devexpress

GanttValidationSettings.AutoUpdateParentTasks Property

aspnet-devexpress-dot-web-dot-aspxgantt-dot-ganttvalidationsettings-09badb79.md

latest3.3 KB
Original Source

GanttValidationSettings.AutoUpdateParentTasks Property

Enables parent-child task relationships validation.

Namespace : DevExpress.Web.ASPxGantt

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

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
Booleanfalse

true, to validate parent-child task relationships; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to AutoUpdateParentTasks
ASP.NET MVC ExtensionsGanttSettings

.SettingsValidation .AutoUpdateParentTasks

| | ASP.NET Web Forms Controls | ASPxGantt |

.SettingsValidation .AutoUpdateParentTasks

|

Remarks

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

Web Forms:

Run Demo: ASPxGantt - Validation

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

MVC:

Run Demo: MVCxGantt - Validation

cshtml
@Html.DevExpress().Gantt(settings => {
    settings.Name = "gantt";
    settings.SettingsValidation.AutoUpdateParentTasks = true;
    ...
}).Bind(
    GanttDataProvider.Tasks, 
    GanttDataProvider.Dependencies, 
    GanttDataProvider.Resources, 
    GanttDataProvider.ResourceAssignments
).GetHtml()

Concept

See Also

ASPxGantt - 'How To' Examples

GanttValidationSettings Class

GanttValidationSettings Members

DevExpress.Web.ASPxGantt Namespace