This is a migrated thread and some comments may be shown as answers.

Does the Scheduler ever request more data?

1 Answer 48 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 11 Jul 2013, 12:19 PM
It appears that the scheduler reads all events during initialization and does not request more data as you "page" through the calendar.  Is this correct?  

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 15 Jul 2013, 01:32 PM
Hi Scott,

Although, by default the scheduler widget requests all of the events, this data can be constraint by enabling the server operation of the DataSource and manually sending the current View start and end date to the server. This way you could return only the data for required the time frame.

dataSource: {
    serverFiltering: true,
    transport: {
        read: {
            url: "...",
            data: {
                start: function() {
                    return $("#scheduler").data("kendoScheduler").view().startDate();
                },
                end: function() {
                    return $("#scheduler").data("kendoScheduler").view().endDate();
                }
            }
        },
        update: {
                 //
        },
        create: {
     //
        },
        destroy: {
   //
        }
    }
 }

Regards,
Rosen
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Scheduler
Asked by
Scott
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or