Skip to main content
A newer version of this page is available. .

GanttSettings.BatchUpdateRouteValues Property

Specifies the names of a controller and an action that should handle callbacks related to Gantt objects updates.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v19.2.dll

Declaration

public object BatchUpdateRouteValues { get; set; }

Property Value

Type Description
Object

An object that contains the Controller and Action names.

Remarks

The following example illustrates how to use the BatchUpdateRouteValues property. Refer to the online demo to get the full code.

Partial View:

@Html.DevExpress().Gantt(settings => {
    settings.BatchUpdateRouteValues = new { Controller = "Features", Action = "GanttBatchUpdate" };
    // ...
}).Bind(
    GanttDataProvider.Tasks, 
    GanttDataProvider.Dependencies, 
    GanttDataProvider.Resources, 
    GanttDataProvider.ResourceAssignments
).GetHtml()

Controller Code:

public ActionResult GanttBatchUpdate(
    MVCxGanttTaskUpdateValues<Task, string> taskUpdateValues,
    MVCxGanttDependencyUpdateValues<Dependency, string> dependencyUpdateValues
    MVCxGanttResourceUpdateValues<Resource, string> resourceUpdateValues,
    MVCxGanttResourceAssignmentUpdateValues<ResourceAssignment, string> resourceAssignmentUpdateValues){
    ProcessTaskValues(taskUpdateValues);
    ProcessDependencyValues(dependencyUpdateValues);
    ProcessResourceValues(resourceUpdateValues);
    ProcessResourceAssignmentValues(resourceAssignmentUpdateValues);
    return GanttExtension.GetBatchUpdateResult(
        taskUpdateValues, 
        dependencyUpdateValues, 
        resourceUpdateValues, 
        resourceAssignmentUpdateValues);
}

void ProcessTaskValues(MVCxGanttTaskUpdateValues<Task, string> taskUpdateValues) {
    // your code
}

void ProcessDependencyValues(
    MVCxGanttDependencyUpdateValues<Dependency, string> dependencyUpdateValues) {
    // your code
}

void ProcessResourceValues(
    MVCxGanttResourceUpdateValues<Resource, string> resourceUpdateValues) {
    // your code
}
void ProcessResourceAssignmentValues(
    MVCxGanttResourceAssignmentUpdateValues<ResourceAssignment, string> resourceAssignmentUpdateValues) {
    // your code
}

Online Demo

Gantt - Data Binding and Modification

See Also