Get Next Occurrence

The following example demonstrates how to get nextOccurrence of the Kendo UI SchedulerEvent in the Scheduler.

    var event = new{
      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

See Also

Other articles and how-to examples on the Kendo UI Scheduler:

How-to examples on the Kendo UI Scheduler in AngularJS:

For more runnable examples on the Kendo UI Scheduler, browse its How To documentation folder.

In this article
Not finding the help you need? Improve this article