Hi Team,
I am trying to sort the records of Gantt chart based on a column by default whenever a Gantt chart is loaded. When the user selects sorting on another column, I am trying to store that sorter in a cache and passing that to sorter value in Store. It looks like that is not working as expected. Can you please help me in understanding how I can achieve that.
const customStore= new Store({
sorters: this.customConfig.sorters,
});
Ganttchart :
new Gantt({
.....
.....
store : this.customStore,
});
customConfig.sorters
It contains an array of object with keys as
{
ascending: boolean;
field: string;
}
Note: I was referring to this document when I am trying to fix that
https://bryntum.com/products/gantt/docs/api/Grid/feature/Sort