I want to initialize(default) the scheduler to a Units view, but when I do this:
scheduler.setCurrentView(null, view);
in either ngOnInit or ngAfterViewInit it throws an error. It does switch to the units view. Works fine for day, week or month with no error. The error:
Error: site view is not defined.
Please check parameters you pass to scheduler.init or scheduler.setCurrentView in your code and ensure you’ve imported appropriate extensions.
Related docs: Views Scheduler Docs
If it doesn’t work in your case, it’s hard to suppose what goes wrong in your case without more details, so could you please reproduce the issue in the following snippet: https://snippet.dhtmlx.com/2dctmw93
(open the snippet => reproduce the issue => click the “Save” button => post here the new link)?
Or send me a simplified demo with all necessary files and run instructions, that I will be able to run on my side and check out what exactly goes wrong.