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

4 posts, 0 answers
  1. Kumeri
    Kumeri avatar
    11 posts
    Member since:
    Jul 2018

    Posted 25 Jul 2019 Link to this post

    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. 

  2. Nencho
    Admin
    Nencho avatar
    1871 posts

    Posted 29 Jul 2019 Link to this post

    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.
  3. Kumeri
    Kumeri avatar
    11 posts
    Member since:
    Jul 2018

    Posted 29 Jul 2019 in reply to Nencho Link to this post

    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 ? 

  4. Nencho
    Admin
    Nencho avatar
    1871 posts

    Posted 31 Jul 2019 Link to this post

    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.
Back to Top