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

Event Is Not Rendered When startTime Is Greater Than endTime

1 Answer 41 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Khurram Ilyas
Top achievements
Rank 1
Khurram Ilyas asked on 18 Jun 2019, 07:54 AM

Can someone please give an explanation?

Say there's an event with start: new Date("2019/6/3 02:00 AM"), and end: new Date("2013/6/3 03:00 AM"). It is displayed with following scheduler configuration.

date: new Date("2019/6/3"),
startTime: new Date("2019/6/3 00:00"),
endTime: new Date("2019/6/3 06:00")

 

Whereas, with the following configuration will render the scheduler, but not the event.

date: new Date("2019/6/3"),
startTime: new Date("2019/6/2 23:00"),
endTime: new Date("2019/6/3 06:00")

 

This problem occurs with views which require time, i.e. day, week views etc.

P.S. I am using v2017.2.504 of kendo.all.min.js file.

 

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 20 Jun 2019, 08:04 AM
Hi Khurram,

In day, week and workWeek views the start and end time of the day should always be on the same day. Also, the startTime should always be before the endTime. Otherwise the widget will not be able to position its events properly (as you have already noticed). If you need to have an overnight view, you will need to use the Timeline. Here you could find a demo implementing such scenario. Keep in mind that the above was introduced with the R3 2017.3.913 release, so it is not available in the version that you have specified.

Regards,
Veselin Tsvetanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Scheduler
Asked by
Khurram Ilyas
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or