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

showWorkHours: false not working

1 Answer 191 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Boris
Top achievements
Rank 1
Boris asked on 04 Feb 2016, 01:59 PM

Hello,

I try to apply showWorkHours:false on day view on my sheduler, according to this manual: http://docs.telerik.com/kendo-ui/api/javascript/ui/scheduler#configuration-showWorkHours

 

It looks like this:

  views: [
            {
                type: "day",
                showWorkHours: false,

    ...}

 But on my sheduler in day view there are still grey slots from 17:00 and later. With the class: k-nonwork-hour.

Am I missunderstanding this fucntion, or is there some some possibility, that something is overwriting shis setting?

 

Thanks for your answer.

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 08 Feb 2016, 08:45 AM
Hello Boris,

This is expected as the "showWorkHours" option controls the "startTime" / "endTime" of the Scheduler but not the work day hours (respectively the gray slots). To remove the gray coloring of the non work hours you  should set "workDayStart" / "workDayEnd" as follows:

workDayEnd: new Date("2013/1/1 11:59 PM"),
workDayStart: new Date("2013/1/1 00:00 AM"),
 
Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Scheduler
Asked by
Boris
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or