Limit Datasource to current view

5 posts, 1 answers
  1. Peter
    Peter avatar
    22 posts
    Member since:
    Nov 2007

    Posted 22 Oct 2013 Link to this post

    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
  2. Answer
    Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 23 Oct 2013 Link to this post

    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!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Peter
    Peter avatar
    22 posts
    Member since:
    Nov 2007

    Posted 23 Oct 2013 Link to this post

    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
  5. Grant
    Grant avatar
    41 posts
    Member since:
    Jul 2016

    Posted 23 Sep in reply to Rosen Link to this post

    Hi, 

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

    Thanks,
    Grant

  6. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 26 Sep Link to this post

    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
Back to Top
UI for ASP.NET MVC is VS 2017 Ready