Scroll programmatically

Hi,

Is there a way, in a timeline bar view, to scroll the sheduler programmatically? To do the same of the dhx_cal_prev_button and dhx_cal_next_button but from a button outside of the dhtmlx scheduler markup?

I’ve only found the method:
void scrollUnit(number step);

But it does not seem to work for the timeline bar view.

Any help?

Thanks!

Hi,
You can use keyboard navigation
docs.dhtmlx.com/scheduler/keybo … ation.html

or use code that is called when you click on next/prev buttons
github.com/DHTMLX/scheduler/blo … r.js#L2143

I.e. you should use setCurrentView method to switch time ranges.