Back to Devexpress

GanttViewSettings.ViewTypeRangeMin Property

aspnet-devexpress-dot-web-dot-aspxgantt-dot-ganttviewsettings-a2ca995b.md

latest2.7 KB
Original Source

GanttViewSettings.ViewTypeRangeMin Property

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

Namespace : DevExpress.Web.ASPxGantt

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

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(GanttViewType.TenMinutes)]
public GanttViewType ViewTypeRangeMin { get; set; }
vb
<DefaultValue(GanttViewType.TenMinutes)>
Public Property ViewTypeRangeMin As GanttViewType

Property Value

TypeDefaultDescription
GanttViewTypeTenMinutes

One of the enumeration values.

|

Available values:

NameDescription
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:

LibraryObject TypePath to ViewTypeRangeMin
ASP.NET MVC ExtensionsGanttSettings

.SettingsGanttView .ViewTypeRangeMin

| | ASP.NET Web Forms Controls | ASPxGantt |

.SettingsGanttView .ViewTypeRangeMin

|

Remarks

Web Forms:

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

MVC:

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

GanttViewSettings Class

GanttViewSettings Members

DevExpress.Web.ASPxGantt Namespace