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

"Cannot read property 'getTimezoneOffset' of null" error after kendo-ui update

3 Answers 587 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Kumeri
Top achievements
Rank 1
Veteran
Kumeri asked on 25 Jul 2019, 09:04 AM

After i updated my kendo-ui library from version "2019.2.517" to "2019.2.605" i am getting the issue "Cannot read property 'getTimezoneOffset' of null". This is only happening in timeline views, other views are working fine. 

here is how i have configured the model section in datasource 

 

let me: CalendarComponent = this;

model: {
id: "eventId",
fields: {
eventId: { from: "eventId", type: "string" },
start: { type: "Date", from: me.eventMapping.start + "" },
end: { type: "Date", from: me.eventMapping.end + (me.eventMapping.start !== me.eventMapping.end ? "" : "end") },
isAllDay: { type: "boolean", from: "allday" }
}
}

 

i have not done any other changes just updated the kendo-ui version. 

3 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 29 Jul 2019, 08:09 AM
Hello Kumeri,

Generally, nothing in the implementation and source of the Scheduler had changed for the specified versions, concerning such an error. That being said, could you double-check if the format of the edited event's start and end times have incorrect or no values set. This topic is also discussed in the following forum thread:

https://www.telerik.com/forums/'gettimezoneoffset'-of-null

Hope this would help.

Regards,
Nencho
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.
0
Kumeri
Top achievements
Rank 1
Veteran
answered on 29 Jul 2019, 09:36 AM

Hi, 

yes i have checked the start and end values, and they have null values. That is why i am getting this error. The weird thing is the error is only coming in timeline views. Is there any link or documentation i can look, which describes how these start and end values are added to event data. Then i can find what is missing ? 

0
Nencho
Telerik team
answered on 31 Jul 2019, 08:34 AM
Hello Kumeri,

Having in mind that the start and end event fields are null - it is expected for the error to be thrown. However, the reason for the null value should be the key to the issue resolve. As I am not familiar with the application and implementation that you have at your end, could you please share or investigate further, how such event is created at your end? Also, please make sure that the events are created with the proper date format for the start and end fields: https://monosnap.com/file/lrlXzMY3gRkDHZDIvcQ4ij4Sx61OIB

As for the fields of the event data, please refer to the following documentation article, providing more inormation on the mandatory fields:

https://docs.telerik.com/kendo-ui/controls/scheduling/scheduler/overview#kendodataschedulerevent

and the entire SchedulerEvent object from our API: https://docs.telerik.com/kendo-ui/api/javascript/data/schedulerevent

Hope this would help.

Regards,
Nencho
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.
Tags
Scheduler
Asked by
Kumeri
Top achievements
Rank 1
Veteran
Answers by
Nencho
Telerik team
Kumeri
Top achievements
Rank 1
Veteran
Share this question
or