Back to Devexpress

MVCxGanttDependencyUpdateValues<TDependency, TKey> Class

aspnetmvc-devexpress-dot-web-dot-mvc-dot-mvcxganttdependencyupdatevalues-2.md

latest2.9 KB
Original Source

MVCxGanttDependencyUpdateValues<TDependency, TKey> Class

Contains information about updated dependencies.

Namespace : DevExpress.Web.Mvc

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

NuGet Package : DevExpress.Web.Mvc5

Declaration

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

Type Parameters

NameDescription
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:

razor
@Html.DevExpress().Gantt(settings => {
    settings.BatchUpdateRouteValues = new { Controller = "Features", Action = "GanttBatchUpdate" };
    // ...
}).Bind(
    GanttDataProvider.Tasks, 
    GanttDataProvider.Dependencies, 
    GanttDataProvider.Resources, 
    GanttDataProvider.ResourceAssignments
).GetHtml()

Controller Code:

csharp
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

MVCxGanttDependencyUpdateValues<TDependency, TKey> Members

DevExpress.Web.Mvc Namespace