Lazy loading while scrolling horizontally

Hi there,

I want to be able to scroll the gantt chart horizontally and lazy load in data. This is because our back end has performance issues with calculating all the different bars. So therefore we would want it to be possible to scroll horizontally and lazy load data in.

Has anyone encountered this before?

Hi @okwan!

There is no built-in Gannt horizontal lazy load feature.

There is only a smart rendering extension. It makes lazy loading in vertical scrolling.
Here is a related article:
https://docs.dhtmlx.com/gantt/desktop__performance.html#smartrendering
Here is a related sample:
https://docs.dhtmlx.com/gantt/samples/02_extensions/13_smart_rendering.html

You can try to set start_date and end_date properties as a way to increase performance. If both the start_date and end_date options are specified and you create a task that is outside the range, the task won’t be displayed in the chart.

Here is a related article:
https://docs.dhtmlx.com/gantt/api__gantt_end_date_config.html

Here is a related snippet. Please open it and push the buttons in the top:
https://snippet.dhtmlx.com/b4a01a3a3