Skip to main content

GanttViewSettings Class

Provides access to the gantt control’s view options.

Namespace: DevExpress.Web.ASPxGantt

Assembly: DevExpress.Web.ASPxGantt.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public class GanttViewSettings :
    GanttSettingsBase

The following members return GanttViewSettings objects:

Library Related API Members
ASP.NET Web Forms Controls ASPxGantt.SettingsGanttView
ASP.NET MVC Extensions GanttSettings.SettingsGanttView

Remarks

The GanttViewSettings class contains options that specify the gantt control’s view settings. Use the SettingsGanttView property to access these settings.

Run Demo: ASPxGantt - Chart Appearance Run Demo: MVCxGantt - Chart Appearance

Web Forms:

<dx:ASPxGantt ID="Gantt" runat="server" ...>
    //...
    <SettingsGanttView ShowResources="false" TaskTitlePosition="Outside" ViewType="Weeks" />
</dx:ASPxGantt>

MVC:

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

Implements

See Also