ASPxClientGantt.SetStartDateRange(startDate) Method
Sets the start date of the date interval in the Gantt chart.
Declaration
SetStartDateRange(
startDate: Date
): void
Parameters
Name | Type | Description |
---|---|---|
startDate | Date | The start date. |
Remarks
Use the SetStartDateRange and SetEndDateRange(endDate) methods to specify the date interval in the Gantt chart.
<script>
function click(s, e) {
clientGantt.SetStartDateRange(new Date('January 1, 2018'));
clientGantt.SetEndDateRange(new Date('January 1, 2020'));
}
</script>
...
<dx:ASPxGantt ID="Gantt" runat="server" ClientInstanceName="clientGantt" >
//...
</dx:ASPxGantt>
<dx:ASPxButton ID="ASPxButton1" runat="server" Text="Set Range" AutoPostBack="false">
<ClientSideEvents Click="click" />
</dx:ASPxButton>
See Also