Problem with dhtmlxscheduler_limit.js

Hi All,

we have the following problem. Still we use the Toolbar to switch between dhtmlxGrid and Schedule (with Timeline view). Now we want to mark all Weekends in schedule but if we attach the dhtmlxscheduler_limit.js in front of the timeline.js the weekend will be marked correctly but if we goes from the timeline view directly to the grid and than we want to go back to the scheduler the scheduler doesn’t open.
If we attach dhtmlxscheduler_limit.js behind all js-Files we can switch between Grid and schedule without any problems but then all days marked.

Do anybody have an idea how we can solve this problem?
dhxDemo.zip (490 KB)

You need to call createTimelineView only once, not each time as scheduler is shown.
Scheduler object is persistent, so when you are switching to the grid, it is preserved with data and all settings.