GanttViewSettings.StartDateRange Property
Specifies the start date of the date interval in the Gantt chart.
Namespace: DevExpress.Web.ASPxGantt
Assembly: DevExpress.Web.ASPxGantt.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
Date |
String. |
The start date. |
#Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to Start |
---|---|---|
ASP. |
Gantt |
|
ASP. |
ASPx |
|
#Remarks
Use the StartDateRange and the EndDateRange properties to specify the date interval in the Gantt chart.
Web Forms:
<dx:ASPxGantt ID="Gantt" runat="server" ...>
//...
<SettingsGanttView
StartDateRange="2018-01-01"
EndDateRange="2020-01-01" />
</dx:ASPxGantt>
MVC:
@Html.DevExpress().Gantt(settings => {
settings.Name = "gantt";
settings.SettingsGanttView.StartDateRange = new DateTime(2018, 01, 01);
settings.SettingsGanttView.EndDateRange = new DateTime(2020, 01, 01);
...
}).Bind(
GanttDataProvider.Tasks,
GanttDataProvider.Dependencies,
GanttDataProvider.Resources,
GanttDataProvider.ResourceAssignments
).GetHtml()