data

Gets currently expanded scheduler events.

Example - add a new event

<div id="scheduler"></div>
<script>
$("#scheduler").kendoScheduler({
    views: ["week"]
});
var scheduler = $("#scheduler").data("kendoScheduler");

scheduler.addEvent({
    title: "Example event",
    start: new Date(),
    end: new Date(),
    recurrenceRule: "FREQ=DAILY;COUNT=2"
});

scheduler.saveEvent();
//get second occurrence
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(scheduler.data()[1]);
</script>
In this article
Not finding the help you need? Improve this article