occurrencesInRange
Gets a list of event occurrences in specified time range.
The result is scoped to the current displayed view. Therefore, the specified range should be within the view's time range.
Parameters
start Date
The start date of the period.
end Date
The end date of the period.
Returns
Array
a list of scheduler events filtered by the specified start/end period.
All recurring events within the start - end period will be returned in the list.
Example - get a list of occurrences
<div id="scheduler"></div>
<script>
$("#scheduler").kendoScheduler({
date: new Date("2023/7/6"),
views: ["week"],
dataSource: [
{
id: 1,
start: new Date("2023/7/6 08:00 AM"),
end: new Date("2023/7/6 09:00 AM"),
title: "Interview",
recurrenceRule: "FREQ=DAILY"
}
]
});
setTimeout(function(){
var scheduler = $("#scheduler").data("kendoScheduler");
var events = scheduler.occurrencesInRange(new Date("2023/7/5"), new Date("2023/7/10"));
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(events);
}, 1500)
</script>