MVCxGanttColumn.FieldName Property
Specifies a column’s field name.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v19.1.dll
Declaration
Property Value
Type | Description |
---|---|
String | The field name. |
Remarks
@Html.DevExpress().Gantt(settings => {
settings.Name = "gantt";
settings.CallbackRouteValues = new { Controller = "Gantt", Action = "FeaturesPartial" };
settings.Width = Unit.Percentage(100);
...
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";
});
...
}).Bind(GanttDataProvider.Tasks, GanttDataProvider.Dependencies, GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments).GetHtml()
Online Demos
See Also