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

Limit Datasource to current view

4 Answers 33 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 2
Peter asked on 22 Oct 2013, 10:40 PM
Is there a way to limit the scheduler datasource to only query the server based on the current view and then re-query when the view changes?  For example, if the calendar is currently on month view for October, then I'd like to only have the October events.  When the users changes to a different month, then the datasource should query the server for the events in that month.   The reason I'd like this is because as you get more and more events on the calendar, it starts to take awhile to load. 


Thanks

4 Answers, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 23 Oct 2013, 07:59 AM
Hi Peter,

Although, by default the scheduler widget requests all of the events, 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 filter the result and return only the data for required time frame. I have attached a sample which demonstrates this. Note that the recurring events should be always returned in order to be expand correctly.

Regards,
Rosen
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Peter
Top achievements
Rank 2
answered on 23 Oct 2013, 02:43 PM
Rosen,

Thank you so much.  This was exactly what I was looking for.  I really appreciate the extra mile Telerik support goes to provide working examples to help out their customer. I'm glad we chose Telerik.

Pete
0
Grant
Top achievements
Rank 2
Veteran
Iron
answered on 23 Sep 2016, 07:32 AM

Hi, 

I know this is an old post, but is there a KendoUI jQuery solution for this issue?

Thanks,
Grant

0
Rosen
Telerik team
answered on 26 Sep 2016, 06:49 AM

Hello Grant,

The same approach as the one discussed here, but using only the Kendo UI for jQuery can be found in this code library.

Regards,
Rosen
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Scheduler
Asked by
Peter
Top achievements
Rank 2
Answers by
Rosen
Telerik team
Peter
Top achievements
Rank 2
Grant
Top achievements
Rank 2
Veteran
Iron
Share this question
or