How the Kendo Scheduler identify the Weekend in workweek view

2 posts, 0 answers
  1. Kumeri
    Kumeri avatar
    3 posts
    Member since:
    Jul 2018

    Posted 23 Dec 2018 Link to this post

    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)

  2. Joana
    Admin
    Joana avatar
    184 posts

    Posted 25 Dec 2018 Link to this post

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