This is a migrated thread and some comments may be shown as answers.
Changing BusinessHours dynamically lead to an error in the timelineMonth View
1 Answer 7 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 2
K.Ramadan asked on 06 Jan 2021, 03:16 PM



I'm trying to change the time dynamically for each day and each employee individual.

I've achieved that for all Views except the timlineMonth!

So every time I change the business hours dynamically, then the timelineMonth View does not work and one of these errors appear in the chrome devtools

kendo.all.js:113735 Uncaught TypeError: Cannot read property 'children' of undefined


Uncaught TypeError: Cannot read property 'end' of undefined


I took the first Dojo example from you :


and edited it to reproduce the issue:


steps to reproduce the issue:

1- change the time from the droplist (select) above the scheduler

2- change the view to timelineMonth

3- open debugger (e.g. devtools console) to see one of the error that I mentioned above 


 Thanks in advance



1 Answer, 1 is accepted

Sort by
Telerik team
answered on 08 Jan 2021, 01:55 PM


The reason for the observed error is that the showWorkHours configuration is only available with the "day" and "week" views, as documented here In order to change the startTime and endTime of the "timelineMonth" view, however, the Scheduler will need to be destroyed and reinitialized again, as explained in this forum thread:

Based on the above I have modified the provided example, by adding a check if the current view is a "timelineMonth" view and if so the Scheduler is destroyed and re-created with the required configuration:

        if(scheduler.viewName() === "timelineMonth"){
          var options = scheduler.options;

          options.showWorkHours = false;

          options.views = [
            { type: "timelineMonth", selected: true, startTime:start,endTime:end  },

        } else {
          //set the scheduler options
          scheduler.options.workDayStart = start;
          scheduler.options.workDayEnd = end;
          //update the view by re-selecting it

Here is a runnable example of the above. I hope this helps.

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

Asked by
Top achievements
Rank 2
Answers by
Telerik team
Share this question