aspnetmvc-devexpress-dot-web-dot-mvc-dot-mvcxganttdependencyupdatevalues-2.md
Contains information about updated dependencies.
Namespace : DevExpress.Web.Mvc
Assembly : DevExpress.Web.Mvc5.v25.2.dll
NuGet Package : DevExpress.Web.Mvc5
public class MVCxGanttDependencyUpdateValues<TDependency, TKey> :
MVCxGanttItemUpdateValues<TDependency, TKey>
where TDependency : new()
Public Class MVCxGanttDependencyUpdateValues(Of TDependency As New, TKey)
Inherits MVCxGanttItemUpdateValues(Of TDependency, TKey)
| Name | Description |
|---|---|
| TDependency |
A type of a dependency.
| | TKey |
A type of a dependency key.
|
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
}
Gantt - Data Binding and Modification
Object MVCxBatchUpdateValues<TDependency, TKey> MVCxGanttItemUpdateValues<TDependency, TKey> MVCxGanttDependencyUpdateValues<TDependency, TKey>
See Also