Back to Devexpress

GanttViewSettings Class

aspnet-devexpress-dot-web-dot-aspxgantt-08912fb7.md

latest2.9 KB
Original Source

GanttViewSettings Class

Provides access to the gantt control’s view options.

Namespace : DevExpress.Web.ASPxGantt

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

NuGet Package : DevExpress.Web

Declaration

csharp
public class GanttViewSettings :
    GanttSettingsBase
vb
Public Class GanttViewSettings
    Inherits GanttSettingsBase

The following members return GanttViewSettings objects:

LibraryRelated API Members
ASP.NET Web Forms ControlsASPxGantt.SettingsGanttView
ASP.NET MVC ExtensionsGanttSettings.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:

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

MVC:

cshtml
@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

IStateManager

Inheritance

Object StateManager PropertiesBase GanttSettingsBase GanttViewSettings

See Also

GanttViewSettings Members

ASPxGantt - 'How To' Examples

Online Example: How to Edit Gantt Data

DevExpress.Web.ASPxGantt Namespace