New to Kendo UI for jQueryStart a free 30-day trial

Expand

methods

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

Parameters:startDate

The start date of the period.

endDate

The end date of the period.

Returns:Array

the expanded list of scheduler events filtered by the specified start/end 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>
Not finding the help you need?
Contact Support