а

Sticky Gantt chart heading part


#1

Hello,

is there a way how to make the heading part (row with months/years) of the Gantt chart sticky to top when scrolling to able to see the heading always no matter where I am currently located on the page?

Thank you so much.


#2

Hello Radek,
Usually, the timeline header is always displayed:
http://snippet.dhtmlx.com/16bb3f458

But if you use the autosize option, Gantt expands all tasks and doesn’t have scrollbars. To scroll the date, you need to scroll the page, that’s why the timeline header cannot be displayed at the top:
http://snippet.dhtmlx.com/eb775d765

Unfortunately, there is no way to change that. If you set the fixed position for the timeline header, it will be displayed at the same place, but you won’t be able to scroll it:
http://prnt.sc/oqmtkq

You need to implement a custom solution or do not autosize Gantt vertically:
http://snippet.dhtmlx.com/cd340441a