We have a scheduler instance that is configured to have a timeline tree view. We would like to have a horizontal scroll bar that allows us to scroll through all the columns and keep the columns a fixed width. Has anyone done this?
We have tried:
Setting “scrollable” to true in the timeline view config
Setting “column_width” to a number representing our desired width (this seemed to do nothing)
I’m not getting what exactly you need.
If you need a tree view you need to add dhtmlxscheduler_treetimeline.js after the dhtmlxscheduler.js and then set scheduler.createTimelineView({ render:tree });.
The scrollable option will let you scroll right and left from the initial render, or in other words, it will not shrink the size of the columns to fit the time scale into the viewport width. So the column_width option will set the minimal width of timeline date columns, 100 by default. This off course also depends on
x_step: xx, //X-Axis step in 'x_unit’s
x_size: xx, // X-Axis length specified as the total number of 'x_step’s
x_start:xx, // X-Axis offset in 'x_unit’s
x_length:xx, // number of 'x_step’s that will be scrolled at a time
We can help you best if you share a little bit of your code. This way we can understand better and help each other