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

Working hour spanning day boundary startTime=9am endTime=2am Event not showing?

2 Answers 193 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Shenglin
Top achievements
Rank 1
Shenglin asked on 04 Dec 2015, 03:22 AM

Hi 

I am trying to use the Kendo Scheduler for a roster application. Our client has a long working hour spanning the day boundary, from 9am to 2am (next day). I try to configure the Kendo schedule HTML control to do it but without success so far, please help, this might be a potential bug.

 

I have tried to set working day setting of the scheduler

workDayStart: new Date(1901, 1, 1, 9, 0, 0),
workDayEnd: new Date(1901, 1, 1,23, 0, 0),

 and I have tried to set the range of the timeline view

 views: [{type: 'timeline', title: 'Shift working hour view', startTime: new Date(1901, 1, 1, 8, 0, 0), endTime: new Date(1901, 1, 2, 3, 0, 0)}]

 

Both of above give me the same result, the schedule grid is showing correctly with the correct start and end time (spanning the day range), however none of my events are showing. 

 The events works fine if I use the show full day option or if when I set the startTime and endTime to be on the same day. Is this a bug in the scheduler or I am missing something here.

I have manage to replicate this issue using a Scheduler demo code as base

http://demos.telerik.com/kendo-ui/scheduler/resources-grouping-vertical

and my modification in Dojo where I apply the custom time range and events are not displaying anymore

http://dojo.telerik.com/@shenglin@mhinteractive.co.nz/ECAWO/3

 

Thank you 

 

Shenglin

 

 

2 Answers, 1 is accepted

Sort by
0
Shenglin
Top achievements
Rank 1
answered on 04 Dec 2015, 03:36 AM

sorry mistake in my original post where working day setting does not work is, (the one above works) 

workDayStart: new Date(1901, 1, 1, 9, 0, 0),
workDayEnd: new Date(1901, 1, 2, 3, 0, 0),

0
Georgi Krustev
Telerik team
answered on 07 Dec 2015, 10:39 AM
Hello Shenglin,

I answered the support thread opened on the same subject. I would like to ask you continue the discussion in only one thread to avoid duplication. As to the answer, here is a quote of it:

The described behavior is actually expected, because none of the built-in views do not support rendering a time span between 2 days. That being said, the only way to accomplish your goal is to build a custom view. You can refer to this how-to demo for more details: Please note that standard support service entitled to this license covers only built-in functionality of the widgets. If you would like to get assistance with a custom functionality or implementation I would suggest you contact our Professional services, as they will be able to assist you with your business task.

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
Shenglin
Top achievements
Rank 1
Answers by
Shenglin
Top achievements
Rank 1
Georgi Krustev
Telerik team
Share this question
or