Hi,
I’m new with dhtmlx so I don’t know what are all the possibilities of customization. I’m doing a gantt chart, with tasks that has time period in 2018 and some in 2019. I would like to avoid horizontal scroll when you go see the task in 2019. So I was wondering if it’s possible to do like scheduler, an arrow next 2018. And when you click on you go to 2019 and you see all the tasks of 2019. And a previous arrow that goes to 2017 and so on…
If it’s possible can you give me some approaches ?
Thank you in advance for your answer
Hello,
You need to implement it manually. There are start_date and end_date configurations, use them to specify the required date range, then call gantt.render().
Many thanks! However I have a “Uncaught ReferenceError: updScaleRange is not defined at HTMLButtonElement.onclick”. It must be due to what Aliaksandr told me: not all code is executed in the global scope… So i tried this http://snippet.dhtmlx.com/60649fa1a but I still got an error, but it is a different one. It seems to not recognize the function updScaleRange(0).
In this case you must call “gantt.$updScaleRange(0)” after its definition:
http://snippet.dhtmlx.com/f2781077f
1 Like