We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Cannot read property 'isTimelineView' of undefined

After placing a new fresh default schedule in our Angular application we are getting the following error in the (Chrome) JS console:

core.js:9110 ERROR TypeError: Cannot read property 'isTimelineView' of undefined
    at ComponentBase.<anonymous> (ej2-schedule.es2015.js:11023)
    at ComponentBase.push../node_modules/@syncfusion/ej2-angular-base/src/component-base.js.ComponentBase.trigger (component-base.js:204)
    at ComponentBase.<anonymous> (ej2-schedule.es2015.js:11021)
    at ComponentBase.push../node_modules/@syncfusion/ej2-angular-base/src/component-base.js.ComponentBase.trigger (component-base.js:204)
    at ComponentBase.changeDate (ej2-schedule.es2015.js:11015)
    at ComponentBase.propertyChangeAction (ej2-schedule.es2015.js:11517)
    at ComponentBase.onPropertyChanged (ej2-schedule.es2015.js:11504)
    at ComponentBase.dataBind (ej2-base.es2015.js:1239)
    at ComponentBase.dataBind (ej2-base.es2015.js:5203)
    at ZoneDelegate.invokeTask (zone-evergreen.js:391)

The scheduler is rendering fine, everything else is working as expected.
We are using the TimelineWeek view.

Do you have any idea how we can prevent this error? Thanks in advance.


3 Replies

KK Karthigeyan Krishnamurthi Syncfusion Team September 26, 2019 08:34 AM UTC

 
Syncfusion greetings. 
 
We have checked the reported case in the below sample and no script error occurs.  
 
Kindly try the sample and if the issue persists, try to reproduce the error in a sample and revert else share your code example/runnable sample (if possible) to serve you better. 
 
Regards, 
Karthi 
 



JV Jan van Rossum September 26, 2019 12:21 PM UTC

Thanks for the example.
It helped me fix this bug.
It seems like it had something to do with the timing of the selectedDate binding in my implementation.
What helped me on the right track is seeing your example where the selectedDate binding is two way => [(selectedDate)]


KK Karthigeyan Krishnamurthi Syncfusion Team September 27, 2019 04:27 AM UTC

Most welcome 😊 


Loader.
Up arrow icon