This is the problem I was trying to solve
I was setting up a dynamic timeline view to render a based on a previous view.
Say, if I am in month view and click on timeline, I should get a month’s timeline e.t.c.
Unfortunately the reconfigured timeline view does not take effect when one uses the Next/Previous buttons. The timeline reverts to the initial configuration.
Any idea on how to permanently reconfigure the view?
What’s wrong with the navigation buttons? What do you mean by ‘reverting to the previous configuration’?
When you click the Next button following code is executed:
scheduler.setCurrentView(scheduler.date.add( //next line changes scheduler._date , but seems it has not side-effects
scheduler.date[scheduler._mode+"_start"](scheduler._date),(step||1),scheduler._mode));
So it adds 1 ‘timeline’ to the current date and loads current view with new date.
I was basically running
scheduler.createTimelineView(...)
even when doing next/previous within the timeline. Works fine when I create a new timeline when the previous view was different. This was in a [color=green]onBeforeViewChange event handler.
Thanks
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan