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

3 posts, 0 answers
  1. Shenglin
    Shenglin avatar
    2 posts
    Member since:
    Apr 2015

    Posted 03 Dec 2015 Link to this post

    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. Shenglin
    Shenglin avatar
    2 posts
    Member since:
    Apr 2015

    Posted 03 Dec 2015 in reply to Shenglin Link to this post

    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),

  3. Kendo UI is VS 2017 Ready
  4. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 07 Dec 2015 Link to this post

    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!
     
Back to Top