Sections collapsed after switching view

We have a Scheduler that on scheduler.init is loaded as render = “bar”. Then later on we give the user the option to switch to a different layout of type “tree”. When doing so all the section of the tree are collapsed. Even when we set the “open:true” property on the section.

Is this a known bug or are we doing something wrong?

Hi,
are you changing a render mode dynamically, or do you have two separate views for “bar” and “tree” timeline?
TreeTimeline does some additional settings when it’s created via scheduler.createTimelineView, so dynamic changing render modes most probably won’t work correctly.

Try defining separate views for modes of a timeline, you can switch them transparently from the user by capturing onBeforeViewChange event. Please see the demo:
docs.dhtmlx.com/scheduler/snippet/b168c05b