Premium support for our pure JavaScript UI components


Post by pincherhgz »

we have the situation that we have around 20000 tasks in the taskStore, but the root tasks just are around 20 (all the other are somehow children). When we configure sorters, the performance goes significantly down (from around 5 seconds to fill the store without sorters to around 50 seconds when we configure sorters).
How can we configure to sort only the around 20 root tasks ?


Post by alex.l »

Hi pincherhgz,

You can use custom sort method https://bryntum.com/products/gantt/docs/api/Core/data/mixin/StoreSort
and just check if level of the node is fits your need, as example using https://bryntum.com/products/gantt/docs/api/Core/data/mixin/TreeNode#property-childLevel property of the task record.

All the best,
Alex


Post Reply