Custom working hours per day

2 posts, 0 answers
  1. Adrian
    Adrian avatar
    8 posts
    Member since:
    Apr 2014

    Posted 31 Jul 2018 Link to this post

    I am currently new to Kendo and the Scheduler Component and was wondering whether I can customize the daily working hours per work day. Let’s say that I’d like Monday’s working hours to start from 7:00 till 19:00. I then would Like Tuesday’s working hours to start from 19:00 and end at 07:00.

    A possible solution is to have custom working hours per day.

    Another possible workaround is to have a customized appointment block built that would have a class working similarly as the k-nonwork-hours css class. In this scenario, I want to be able to color the number of columns with the retrieved working hours, to show the user that he has an appointment on that day.

    Can you please point me in the right direction as to how this can be achieved?

  2. Neli
    Neli avatar
    357 posts

    Posted 02 Aug 2018 Link to this post

    Hi Adrian,

    I am afraid that different business hours for each day is not a supported scenario in Scheduler out-of-the-box. 
    In case the 'day' view is used in your application, you could follow the approach in this Forum thread. In the thread it is described how when the user navigates through the different days, the Scheduler is destroyed and recreated with different start and end time. Here you will find Dojo example, where the workDayStart time is based on the day of the week. 

    I would suggest you also to refer to the following Forum thread where setting different business hours for individual days is discussed. 

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