how to sort by user-defined rules for swimlane?
Hi bryntum team,
how to sort by user-defined rules for swimlane?
Hi bryntum team,
how to sort by user-defined rules for swimlane?
You can use this to add sorters https://bryntum.com/docs/taskboard/api/TaskBoard/store/TaskStore#function-addSorter
Good Luck ,
Tasnim
Hi tasnim
I used this function,but it did not work.please help me to check these code.
groupList.forEach((item) => {
this.taskboard.swimlanes.add({ id: item.groupName, text: item.groupName });
})
this.taskboard.swimlanes.addSorter("text", true)
I think it needs to you call taskboard.refresh()
If addSorter doesn't work for you then, Please use this https://bryntum.com/docs/taskboard/api/Core/data/Store#function-sort
And TaskBoard doesn't listen for sorting changes on swimlanes
I've created a ticket for that here it is https://github.com/bryntum/support/issues/5543
And as Animal said you need to call refresh after it.
taskBoard.swimlanes.sort('text');
taskBoard.refresh()
So after a refresh, it will apply the sorting.
Hi tasnim,
I tried
taskBoard.refresh()
.But it did not work.
In my demo , groupList has been sorted. Why does it become disorganized after I add grouplist into Swimlane?
Could you please provide the demo so we can debug it?
Hi
I uploaded a demo.please check it.
Thank you for the demo, this is a bug. I've added this info into the ticket. We'll try to fix it asap. Thank you for the report.
Hi ,Has this bug been fixed?