Gantt custom CellTemplate for large datasets

Hello,

I am trying to build a gantt which has more than 30K records with custom templates for each cell in the left grid. Please suggest what would be best way to create and render these templates so that it does not affect the performance.

Hello @Surbhi_Agarwal,

Starting from v6.2, the smart rendering feature is enabled in DHTMLX Gantt by default, which ensures that only the tasks and links visible on the screen at the moment are being rendered. This helps to significantly improve performance when there are large datasets.

Please check this article on different ways to improve performance for more information: Performance: Ways to Improve Gantt Docs.
Here is a sample with 30000 tasks and 3671 links loaded within ~1 sec: Working with 30000 tasks.
Please check also this sample demonstrating various performance tweaks: Gantt : Samples.

You can also use dynamic branch loading when opening branches in DHTMLX Gantt, where subtasks are loaded only after the parent task is opened.
Dynamic Loading (on demand) Gantt Docs.

Or you can load tasks dynamically when scrolling to the last visible task (How-tos Gantt Docs).
Here’s an example of how it might be implemented: DHTMLX - Gantt. Load data dynamically on scroll.

Best regards,
Valeria Ivashkevich
DHTMLX Support Engineer

1 Like