JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › General Discussions › Kanban swimlanes › Reply To: Kanban swimlanes
Hi.
I needed to swim by priority, from how the component does it, I try to simulate it, that is:
//assign the value of the priority to the swimlane attribute
for (var i = 0; _kanban.dataSource.length < length; i++) {
_kanban.dataSource[i].swimlane = _kanban.dataSource[i].priority;
}
//then build UI
_kanban.swimlanes.push({ label: ‘Low priority’, dataField: ‘low’ });
_kanban.swimlanes.push({ label: ‘Normal priority’, dataField: ‘normal’ });
_kanban.swimlanes.push({ label: ‘High priority’, dataField: ‘high’ });
_kanban.refresh();
Interestingly enough, value of the swimlane did not change, they all were set to ‘low’.
I need to do this at run time, and not pre-determined. If only swimlane field could have been any of the fields of a task.
Please show me the proper way to do this.