Our state of the art Gantt chart


Post by additout »

Hello Bryntum team,

Is there any way to be able to scroll to the left X weeks on load? (I made this example zooming out, scrolling, and zooming in again)

Captura de Pantalla 2022-11-17 a las 16.23.39.png
Captura de Pantalla 2022-11-17 a las 16.23.39.png (22.05 KiB) Viewed 214 times

We tried to do the same way as you answered in viewtopic.php?p=113707#p113707, but it didn't work for us. Is there any way to do it?

Thank you in advance! :)


Post by marcio »

Best regards,
Márcio


Post by additout »

Hello Marcio,

Thanks for your quick answer. :) I tried to do it this way:

Captura de Pantalla 2022-11-22 a las 10.27.23.png
Captura de Pantalla 2022-11-22 a las 10.27.23.png (30.28 KiB) Viewed 194 times

And I got this error:

Captura de Pantalla 2022-11-22 a las 10.20.33.png
Captura de Pantalla 2022-11-22 a las 10.20.33.png (165.9 KiB) Viewed 194 times

Maybe its because how we load the Bryntum component with NextJS that gives this module problem? Or maybe I'am not doing it right.


Post by alex.l »

ganttConfig is an object, it has no setTimeSpan methods. You need to call it with gantt class instance.

Try to use this as well https://bryntum.com/products/gantt/docs/api/Scheduler/view/mixin/TimelineScroll#config-infiniteScroll

True to automatically adjust the panel timespan during scrolling in the time dimension, when the scroller comes close to the start/end edges.

Example in ganttConfig.js

      infiniteScroll : true

All the best,
Alex


Post Reply