MVCxGanttColumn Class
Represents a gantt’s column.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v19.1.dll
Declaration
Related API Members
The following members return MVCxGanttColumn objects:
Remarks
The Gantt stores its columns in the Columns collection. A column can be accessed by its caption or the name of the data source field to which it is bound.
Example
@Html.DevExpress().Gantt(settings => {
settings.Name = "gantt";
settings.CallbackRouteValues = new { Controller = "Gantt", Action = "FeaturesPartial" };
...
settings.Columns.Add(c => {
c.FieldName = "Subject";
c.Width = 280;
});
settings.Columns.Add(c => {
c.FieldName = "StartDate";
c.Width = 100;
c.DisplayFormat = "MM/dd/yyyy";
});
settings.Columns.Add(c => {
c.FieldName = "EndDate";
c.Width = 100;
c.DisplayFormat = "MM/dd/yyyy";
});
...
}).Bind(GanttDataProvider.Tasks, GanttDataProvider.Dependencies, GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments).GetHtml()
Online Demos
Implements
Inheritance
See Also