Back to Devexpress

GanttSettings.BatchUpdateRouteValues Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-ganttsettings-f273576d.md

latest2.1 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public object BatchUpdateRouteValues { get; set; }
vb
Public Property BatchUpdateRouteValues As Object

Property Value

TypeDescription
Object

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

|

Remarks

Run Demo: MVCxGantt - Data Binding and Editing

csharp
// 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()
csharp
// 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

GanttSettings Class

GanttSettings Members

DevExpress.Web.Mvc Namespace