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

How to get scheduler start and end date

2 Answers 1424 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Zohar
Top achievements
Rank 1
Zohar asked on 02 Oct 2014, 03:30 PM
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 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 03 Oct 2014, 11:35 AM
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!
 
0
Georgi Krustev
Telerik team
answered on 03 Oct 2014, 11:46 AM
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!
 
Tags
Scheduler
Asked by
Zohar
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or