Get Next Occurrence
The following example demonstrates how to get nextOccurrence
of the Kendo UI SchedulerEvent
in the Scheduler.
<script>
var event = new kendo.data.SchedulerEvent({
title: "Event1",
start: new Date(2014, 10, 10, 10),
end: new Date(2014, 10, 10, 11),
recurrenceRule: "FREQ=WEEKLY"
});
// Add the count for the occurrences.
event.recurrenceRule += ";COUNT=2";
// Generate the occurrences.
var nextOccurrence = event.expand(event.start, new Date(2999, 0, 1), "Etc/UTC")[1];
// Log the occurrence.
console.log(nextOccurrence);
</script>