How to get scheduler start and end date

3 posts, 0 answers
  1. Zohar
    Zohar avatar
    13 posts
    Member since:
    Sep 2014

    Posted 02 Oct 2014 Link to this post

    Hi,

    I am trying to get the start date and end date of the range that the user is viewing.

    It seems that the 'date' method will only return the end date of the current view. How do I retrieve the start date?

    var scheduler = $("#scheduler").data("kendoScheduler");
    scheduler.date()  // This is only the end date

    Thanks

    Zohar
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3748 posts

    Posted 03 Oct 2014 Link to this post

    Hello Zohar,

    To get the date range shown in the Scheduler, you will need to get the current visible view. Use the view method for that task. Once the view is retrieved then you can use the startDate and endDate methods to get the view range. If you would like to get and the time (applicable only to day, week, workweek views) then use the startTime and endTime methods. Here is a demo that demonstrates how to use those methods to get the datetime range of the week view.

    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3748 posts

    Posted 03 Oct 2014 Link to this post

    Hello Zohar,

    Here is the correct link to the demo.

    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top