Smart UI Components & Libraries – Grid, Scheduler, Gantt, Kanban for Angular, React, Next.js, Vue, Blazor, JavaScript › Forums › Kanban › Kanban column scrollbar still showing after clearing data source to null array
Tagged: kanban column scroll
- This topic has 3 replies, 2 voices, and was last updated 4 years, 4 months ago by
yavordashew.
-
AuthorPosts
-
June 25, 2021 at 4:01 pm #101944
davout
MemberI am using the smart kanban component, where in certain instances there can be a large number of tasks in a single column and the column scrollbar appears
If I then clear all the tasks from the kanban by setting the datasource to an empty array, I have noticed that the column scroll bars are not removed. i.e the column has no tasks but the column is showing a scrollbar.
June 28, 2021 at 2:28 pm #101949yavordashew
MemberHi davout,
Yes the reported behavior is present as described.
However when you want to remove tasks from the SmartKanban I suggest you use theremoveTask()method.
Quick code example if you want to remove all the tasks in a kanban:for(let i = 0; i < this.kanban.dataSource.length; i ++){ this.kanban.removeTask(i); }More about it you can find in the API of the Kanban:
https://www.htmlelements.com/docs/kanban-api/
Let me know if that works for you!
Please, do not hesitate to contact us if you have any additional questions.
Best regards,
Yavor Dashev
Smart UI Team
https://www.htmlelements.com/June 28, 2021 at 3:25 pm #101951davout
MemberTo me this looks like a bug…
In my code I am assigning a new array of objects directly to the ‘data source’ property.
Like…<smart-kanban #kanban class="task-smart-kanban" id="kanban" [collapsible]="collapseColumns" [columns]="columns$ | async" [dataSource]="specialTasks$ | async" [taskDue]="true" [formatStringDate]="'dd MMM yyyy'" [taskUserIcon]="false" [taskActions]="true" (onDragEnd)="onDragEnd($event)" (onChange)="onChange($event)" > </smart-kanban>June 29, 2021 at 2:53 pm #101955yavordashew
MemberHi davout,
Yes I’m aware that is a bug and I have added a work item for it and.
We will work to fix this issue as soon as we are able to.
Please, do not hesitate to contact us if you have any additional questions.
Best regards,
Yavor Dashev
Smart UI Team
https://www.htmlelements.com/ -
AuthorPosts
- You must be logged in to reply to this topic.