Skip to main content
All docs
V23.2

ASPxClientGantt.SetEndDateRange(endDate) Method

Sets the end date of the date interval in the Gantt chart.

Declaration

SetEndDateRange(
    endDate: Date
): void

Parameters

Name Type Description
endDate Date

The end date.

Remarks

Use the SetStartDateRange(startDate) and SetEndDateRange methods to specify the date interval in the Gantt chart.

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

<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