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.

MVCxGanttDependencyUpdateValues<TDependency, TKey> Class

Contains information about updated dependencies.

Namespace: DevExpress.Web.Mvc

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

Declaration

public class MVCxGanttDependencyUpdateValues<TDependency, TKey> :
        MVCxGanttItemUpdateValues<TDependency, TKey>
    where TDependency : new()
Public Class MVCxGanttDependencyUpdateValues(Of TDependency As New, TKey)
    Inherits MVCxGanttItemUpdateValues(Of TDependency, TKey)

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