Primeng p-table virtual scroll issue. When user drags scroll bar too fast then table data order is changing frequently

UI Components for Angular
Post Reply
PriyankaGrandhi
Posts: 1
Joined: 24 Nov 2020, 13:47

24 Nov 2020, 13:56

Hi,

I'm using primeng p-table to display data. I have enabled virtual scrolling which is working fine, however when user drags the scroll bar so fast then table data order is changing every time. But when I use lazy load concept along with virtual scroll I'm not facing issue.
Please help me out of the issue.
<p-table *ngIf="!showLoader" [columns]="columns" styleClass="custom-table table border" [value]="tableData"
[scrollable]="true" [scrollHeight]="scrollHeight" [virtualScroll]="true" [virtualRowHeight]="28"
[rows]="pagination.rows" [lazy]="!cond"
(onLazyLoad)="onTableLazyLoad($event)">

when lazy load condition is false then virtual scrolling is not working as expected. The table data order is changing frequently when scrollbar is dragged too fast to the end.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests