I am not able to change the view of the scheduler to “timelineMonthView” programmatically by calling
this.myScheduler.view("timelineMonthView")
but I am getting the following error:
ERROR TypeError: Cannot read property 'type' of undefined
at c.<computed>._setView (jqxscheduler.js:8)
at c.<computed>.setView (jqxscheduler.js:8)
at c.<computed>.propertyChangedHandler (jqxscheduler.js:8)
at Object.b.jqx.setvalueraiseevent (jqxcore.js:15)
at Object.b.jqx.set (jqxcore.js:15)
at Object.b.jqx.jqxWidgetProxy (jqxcore.js:15)
at HTMLDivElement.eval (jqxcore.js:15)
at Function.each (jqxcore.js:8)
at init.each (jqxcore.js:8)
at init.b.fn.<computed> [as jqxScheduler] (jqxcore.js:15)
I have modified the existing angular example to demonstrate this issue:
https://stackblitz.com/edit/github-d2rxq6?file=src%2Fapp%2Fapp.component.ts
when you click the Test button you will get the previous error instead of the view changing in the scheduler.