All docs
V19.2
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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; }
Public Property BatchUpdateRouteValues As Object

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