Our flexible Kanban board for managing tasks with drag drop


Post by lanpeng »

Hi bryntum team,
how to sort by user-defined rules for swimlane?


Post by tasnim »


Post by lanpeng »

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)

Post by Animal »

I think it needs to you call taskboard.refresh()


Post by tasnim »

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.


Post by lanpeng »

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?


Post by tasnim »

Could you please provide the demo so we can debug it?


Post by lanpeng »

Hi
I uploaded a demo.please check it.

Attachments
demo.zip
(279.58 KiB) Downloaded 69 times

Post by alex.l »

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.

All the best,
Alex


Post by lanpeng »

Hi ,Has this bug been fixed?


Post Reply