Back to Devexpress

ASPxClientGantt.SetEndDateRange(endDate) Method

aspnet-js-aspxclientgantt-dot-setenddaterange-x28-enddate-x29.md

latest1.6 KB
Original Source

ASPxClientGantt.SetEndDateRange(endDate) Method

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

Declaration

ts
SetEndDateRange(
    endDate: Date
): void

Parameters

NameTypeDescription
endDateDate

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

aspx
<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

ASPxGantt - Overview

MVCxGantt - Overview

ASPxGantt - 'How To' Examples

MVCxGantt - 'How To' Examples

ASPxClientGantt Class

ASPxClientGantt Members