Skip to main content
All docs
V25.1
  • GanttViewSettings.ViewTypeRangeMax Property

    Specifies the maximum zoom level of tasks in the Gantt chart.

    Namespace: DevExpress.Web.ASPxGantt

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

    #Declaration

    [DefaultValue(GanttViewType.Years)]
    public GanttViewType ViewTypeRangeMax { get; set; }

    #Property Value

    Type Default Description
    GanttViewType Years

    One of the enumeration values.

    Available values:

    Name Description
    TenMinutes

    Displays ten minutes.

    Hours

    Displays hours.

    SixHours

    Displays six hours.

    Days

    Displays days.

    Weeks

    Displays weeks.

    Months

    Displays months.

    Quarter

    Displays quarters.

    Years

    Displays years.

    #Property Paths

    You can access this nested property as listed below:

    Library Object Type Path to ViewTypeRangeMax
    ASP.NET MVC Extensions GanttSettings
    .SettingsGanttView .ViewTypeRangeMax
    ASP.NET Web Forms Controls ASPxGantt
    .SettingsGanttView .ViewTypeRangeMax

    #Remarks

    Web Forms:

    <dx:ASPxGantt ID="Gantt" runat="server" ...>
        //...
        <SettingsGanttView ViewTypeRangeMin="Months" ViewTypeRangeMax="Days" />
    </dx:ASPxGantt>
    

    MVC:

    @Html.DevExpress().Gantt(settings => {
        settings.Name = "gantt";
        settings.SettingsGanttView.ViewTypeRangeMin = GanttViewType.Months;
        settings.SettingsGanttView.ViewTypeRangeMin = GanttViewType.Days;    
        ...
    }).Bind(
        GanttDataProvider.Tasks, 
        GanttDataProvider.Dependencies, 
        GanttDataProvider.Resources, 
        GanttDataProvider.ResourceAssignments
    ).GetHtml()
    
    See Also