expand

Expands all recurring events in the data and returns a list of events for a specific period.

Parameters

start Date

The start date of the period.

end Date

The end date of the period.

Returns

Array the expanded list of scheduler events filtered by the specified start/end period.

Example - get all occurrences for a specific period

<script>
    var dataSource = new kendo.data.SchedulerDataSource({
        data: [
            new kendo.data.SchedulerEvent({
                id: 1,
                title: "Event1",
                start: new Date("2013/4/4 12:00"),
                end: new Date("2013/4/4 14:00")
            }),
            new kendo.data.SchedulerEvent({
                id: 2,
                title: "Recurring event",
                start: new Date("2013/4/4 15:00"),
                end: new Date("2013/4/4 17:00"),
                recurrenceRule: "FREQ=DAILY"
            })
        ]
    });

    dataSource.fetch();

    //returns list of expanded occurrences
    var occurrences = dataSource.expand(new Date("2013/4/1"), new Date("2013/5/1"));
</script>
In this article