Possible bug or scheduler misuse?

4 posts, 0 answers
  1. Philippe
    Philippe avatar
    14 posts
    Member since:
    May 2015

    Posted 17 Jan Link to this post

    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

  2. Philippe
    Philippe avatar
    14 posts
    Member since:
    May 2015

    Posted 17 Jan Link to this post

    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?

  3. Kendo UI is VS 2017 Ready
  4. Philippe
    Philippe avatar
    14 posts
    Member since:
    May 2015

    Posted 18 Jan in reply to Philippe Link to this post

    Update on link : http://dojo.telerik.com/emIrI/3
  5. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 19 Jan Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready