Back to Devexpress

GanttViewSettings.StartDateRange Property

aspnet-devexpress-dot-web-dot-aspxgantt-dot-ganttviewsettings-96db3860.md

latest3.1 KB
Original Source

GanttViewSettings.StartDateRange Property

Specifies the start date of the date interval in the Gantt chart.

Namespace : DevExpress.Web.ASPxGantt

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

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(typeof(DateTime), "")]
public DateTime StartDateRange { get; set; }
vb
<DefaultValue(GetType(Date), "")>
Public Property StartDateRange As Date

Property Value

TypeDefaultDescription
DateTimeString.Empty

The start date.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to StartDateRange
ASP.NET MVC ExtensionsGanttSettings

.SettingsGanttView .StartDateRange

| | ASP.NET Web Forms Controls | ASPxGantt |

.SettingsGanttView .StartDateRange

|

Remarks

Use the StartDateRange and the EndDateRange properties to specify the date interval in the Gantt chart.

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

Web Forms:

aspx
<dx:ASPxGantt ID="Gantt" runat="server" ...>
    //...
    <SettingsGanttView 
        StartDateRange="2018-01-01"
        EndDateRange="2020-01-01" />
</dx:ASPxGantt>

MVC:

razor
@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()

See Also

ASPxGantt - 'How To' Examples

EndDateRange

SetStartDateRange(startDate)

GanttViewSettings Class

GanttViewSettings Members

DevExpress.Web.ASPxGantt Namespace