Back to Devexpress

ASPxClientCalendar.SelectRange(start, end) Method

aspnet-js-aspxclientcalendar-dot-selectrange-x28-start-end-x29.md

latest1.1 KB
Original Source

ASPxClientCalendar.SelectRange(start, end) Method

Selects the specified range of dates within the calendar.

Declaration

ts
SelectRange(
    start: Date,
    end: Date
): void

Parameters

NameTypeDescription
startDate

A date-time value that specifies the range’s first date.

| | end | Date |

A date-time value that specifies the range’s last date.

|

Remarks

javascript
var start = new Date("2023-01-05");
var end = new Date("2023-01-10");
calendar.SelectRange(start, end);

To deselect the specified date range, use the ASPxClientCalendar.DeselectRange method.

See Also

SelectDate(date)

EnableClientSideAPI

Calendar

ASPxClientCalendar Class

ASPxClientCalendar Members