Page 1 of 1

info request: sort only the root objects

Posted: Tue Jan 31, 2023 9:53 pm
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 ?


Re: info request: sort only the root objects

Posted: Wed Feb 01, 2023 4:27 am
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.