Skip to main content

MVCxGanttDependencyUpdateValues<TDependency, TKey> Class

Contains information about updated dependencies.

Namespace: DevExpress.Web.Mvc

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

Declaration

public class MVCxGanttDependencyUpdateValues<TDependency, TKey> :
    MVCxGanttItemUpdateValues<TDependency, TKey>
    where TDependency : new()

Type Parameters

Name Description
TDependency

A type of a dependency.

TKey

A type of a dependency key.

Remarks

The following example illustrates how to use the MVCxGanttDependencyUpdateValues object. 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){
    ProcessTaskValues(taskUpdateValues);
    ProcessDependencyValues(dependencyUpdateValues);
    return GanttExtension.GetBatchUpdateResult(taskUpdateValues, dependencyUpdateValues);
}

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

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

Online Demo

Gantt - Data Binding and Modification

Inheritance

Object
MVCxBatchUpdateValues<TDependency, TKey>
MVCxGanttItemUpdateValues<TDependency, TKey>
MVCxGanttDependencyUpdateValues<TDependency, TKey>
See Also