All docs
V21.2
21.2
21.1
The page you are viewing does not exist in version 21.1. This link will take you to the root page.
20.2
The page you are viewing does not exist in version 20.2. This link will take you to the root page.
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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