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

Custom working hours per day

1 Answer 215 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Adrian
Top achievements
Rank 1
Adrian asked on 31 Jul 2018, 08:16 AM

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?

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 02 Aug 2018, 07:51 AM
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. 


Regards,
Neli
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
Adrian
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or