Skip to main content

GanttSettings.BatchUpdateRouteValues Property

Specifies the names of a controller and an action that handle callbacks in batch edit mode.

Namespace: DevExpress.Web.Mvc

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

Declaration

public object BatchUpdateRouteValues { get; set; }

Property Value

Type Description
Object

The object that contains the names of a controller and action.

Remarks

Run Demo: MVCxGantt - Data Binding and Editing

// Partial View
@Html.DevExpress().Gantt(settings => {
    settings.Name = "gantt";
    settings.CallbackRouteValues = new { Controller = "Data", Action = "ValidationPartial" };
    settings.BatchUpdateRouteValues = new { Controller = "Data", Action = "ProjectDataUpdate" };
    ...
}).Bind(DataProvider.Tasks, DataProvider.Dependencies).GetHtml()
// Controller
public ActionResult ProjectDataUpdate(
  MVCxGanttTaskUpdateValues<Task, string> taskUpdateValues,
  MVCxGanttDependencyUpdateValues<Dependency, string> dependencyUpdateValues, ValidationDemoOptions options) {
      ProcessProjectTaskValues(taskUpdateValues);
      ProcessProjectDependencyValues(dependencyUpdateValues);
      ViewBag.ValidationDemoOptions = options;
      return PartialView("ValidationPartial");
}
See Also