Edit this page

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("2013/6/6"),
  views: ["week"],
  dataSource: [
    {
      id: 1,
      start: new Date("2013/6/6 08:00 AM"),
      end: new Date("2013/6/6 09:00 AM"),
      title: "Interview",
      recurrenceRule: "FREQ=DAILY"
    }
  ]
});

var scheduler = $("#scheduler").data("kendoScheduler");

var events = scheduler.occurrencesInRange(new Date("2013/6/5"), new Date("2013/6/10"));

console.log(events);
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy