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

How the Kendo Scheduler identify the Weekend in workweek view

4 Answers 667 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Kumeri
Top achievements
Rank 1
Iron
Veteran
Kumeri asked on 24 Dec 2018, 04:16 AM

Hi, 

I am using the workweek view in the Kendo Scheduler. I would like to know how the Kendo reads the weekend in workweek view. Is it always Saturday and Sunday or do you consider the regional settings. (Example for Saudi Arab weekend is Thursday and Friday)

4 Answers, 1 is accepted

Sort by
0
Joana
Telerik team
answered on 25 Dec 2018, 09:58 AM
Hi Kumeri,

The easiest way to change the weekend in the default week view would be via its:

- workWeekStart setting: https://docs.telerik.com/kendo-ui/api/javascript/ui/scheduler/configuration/views.workweekstart
- workWeekEnd setting: https://docs.telerik.com/kendo-ui/api/javascript/ui/scheduler/configuration/views.workweekend

I have prepared a sample illustrating the scenario:

https://jsbin.com/kayanemera/edit?html,css,js,output

However, you could always implement a custom view to further extend the view:

https://docs.telerik.com/kendo-ui/controls/scheduling/scheduler/how-to/custom-views/custom-view

You might find interesting and useful the following blogpost regarding custom styling of non-working hours:

http://www.toplinestrategies.com/blogs/application-development/gray-outblock-unavailable-time-kendo-scheduler-js

Let me know if you have further questions.

Regards,
Joana
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.
0
yolo
Top achievements
Rank 1
Veteran
answered on 12 Jan 2021, 06:01 AM
Hi, i found that the workDays attribute only work for workWeek and it doesn't work in week. Is this stated in the documentation? because i couldn't find it.
0
Aleksandar
Telerik team
answered on 13 Jan 2021, 01:55 PM

Hello,

Can you please share some additional details on what is not working? You can set the workDays option to the Scheduler to define the working days for all Views. Or you can set it through the configuration of an individual View.

For example in the workWeek view only the defined workDays are displayed:

Where in the week View all days are rendered, however, the work days and non-working days are styled differently:

Am I missing something in the behavior you are reporting? Can you provide a runnable example where I can observe the reported behavior?

Regards,
Aleksandar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
yolo
Top achievements
Rank 1
Veteran
answered on 14 Jan 2021, 04:38 AM
oh got it!. thank you aleksandar ^^
Tags
Scheduler
Asked by
Kumeri
Top achievements
Rank 1
Iron
Veteran
Answers by
Joana
Telerik team
yolo
Top achievements
Rank 1
Veteran
Aleksandar
Telerik team
Share this question
or