How the Kendo Scheduler identify the Weekend in workweek view

5 posts, 0 answers
  1. Kumeri
    Kumeri avatar
    13 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
    210 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.
  3. yolo
    yolo avatar
    10 posts
    Member since:
    Jan 2021

    Posted 4 days and 18 hours ago in reply to Joana Link to this post

    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.
  4. Aleksandar
    Admin
    Aleksandar avatar
    236 posts

    Posted 3 days and 10 hours ago Link to this post

    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/.

  5. yolo
    yolo avatar
    10 posts
    Member since:
    Jan 2021

    Posted 2 days and 20 hours ago in reply to Aleksandar Link to this post

    oh got it!. thank you aleksandar ^^
Back to Top