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

Possible bug or scheduler misuse?

3 Answers 62 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Philippe
Top achievements
Rank 1
Philippe asked on 17 Jan 2016, 01:08 PM

Hi, 

Duplicate of error here:  http://dojo.telerik.com/emIrI 

Scenario: when timelineWorkWeek  is selected and showWorkHours: true I get Uncaught TypeError: Cannot read property 'head' of undefined

I do know that showWorkHours is supported on day / week

 Do you plan to support showWorkHours on timelineWorkWeek anytime soon?

 

Thank you

3 Answers, 1 is accepted

Sort by
0
Philippe
Top achievements
Rank 1
answered on 17 Jan 2016, 01:44 PM

From docs: The showWorkHours option is supported when views.type is set to "day" or "week".

my views are:

                views: [
                    {
                        type: "timeline",
                        selected: true,
                        majorTick: 15, 
                        minorTickCount: 1, 
                    },
                    {
                        type: "timelineWorkWeek",               
                        majorTick: 1044,
                    },
                    {
                        type: "month"
                    }
                ],

 showWorkHours:true works fine with timeline. Why is timeline so different from timelineWorkWeek?

0
Philippe
Top achievements
Rank 1
answered on 18 Jan 2016, 08:35 AM
Update on link : http://dojo.telerik.com/emIrI/3
0
Vladimir Iliev
Telerik team
answered on 19 Jan 2016, 03:38 PM
Hi Philippe,

Please note that the difference between the "timelineWeek" and "timelineWorkWeek" is the days of week that they display. In case the work week views, the days from Monday to Friday will be shown (by default) where the week views show all days. 

Also current setup is not working as expected due to the "majorTick" option which is set to number that cannot be divided without reminder by result of (endTime - startTime). Setting this option to for example "60" minutes resolves the issue. 

Finally I would suggest to set the "timezone" option of the widget in order to have more expected output across different timezones. For more information you can check this help article.

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
Philippe
Top achievements
Rank 1
Answers by
Philippe
Top achievements
Rank 1
Vladimir Iliev
Telerik team
Share this question
or