Back to Devexpress

GanttSettings.SettingsGanttView Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-ganttsettings-912797f7.md

latest1.9 KB
Original Source

GanttSettings.SettingsGanttView Property

Provides access to the Gantt’s view settings.

Namespace : DevExpress.Web.Mvc

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

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public GanttViewSettings SettingsGanttView { get; }
vb
Public ReadOnly Property SettingsGanttView As GanttViewSettings

Property Value

TypeDescription
GanttViewSettings

Object that contains the Gantt’s view settings.

|

Remarks

Run Demo: MVCxGantt - Chart Appearance

csharp
@Html.DevExpress().Gantt(settings => {
    settings.Name = "gantt";
    ...
    settings.SettingsGanttView.ViewType = GanttViewType.Hours;
    settings.SettingsGanttView.TaskTitlePosition = GanttTaskTitlePosition.Outside;
    settings.SettingsGanttView.ShowResources = false;
    ...
}).Bind(
    GanttDataProvider.Tasks, 
    GanttDataProvider.Dependencies, 
    GanttDataProvider.Resources, 
    GanttDataProvider.ResourceAssignments)
.GetHtml()

Examples

See Also

MVC Gantt - 'How To' Examples

MVC Gantt - Overview

GanttSettings Class

GanttSettings Members

DevExpress.Web.Mvc Namespace