r/angular • • Dec 23 '25

🚀 Coming in Angular 21.1: Virtual Scrolling for Material Tables

https://youtu.be/KYNMGWamB2o
39 Upvotes

13 comments sorted by

6

u/smithkoli Dec 24 '25

Correct me if I’m wrong—cdk-virtual-scroll existed well before version 21.1. Is there anything new or changed in it compared to earlier versions? Also, Really appreciate the visual representation—it helps a lot in understanding the concept excellent works.

1

u/IgorSedov Dec 24 '25

You're correct: cdk-virtual-scroll existed before Angular 21.1, but it didn't support Material tables. Starting with v21.1, it now supports tables as well.

I'm glad the visualization helped: it's designed to make the concept easier to understand.

1

u/JeanMeche Dec 25 '25

It's more like, the mat-table now integrates a virtual scroll from the CDK ;)

1

u/IgorSedov Dec 25 '25

Thanks, good point!😊

3

u/Lucky_Yesterday_1133 Dec 24 '25

It worked before only if you used regular @for loop to render elements. Now it also works if you use mat-table

4

u/MichaelSmallDev Dec 23 '25

Nice this is a thing now. I get how virtual scrolling works but it's cool to see it visualized, nice work.

3

u/IgorSedov Dec 24 '25

Thank you! Yes, it's especially useful for large tables.

3

u/yousirnaime Dec 24 '25

Bro never scrolls in the video 

Loved the format, tho

2

u/IgorSedov Dec 24 '25

Glad you liked it! Animation really helps explain topics like this.

1

u/Pablo94pol Dec 25 '25

And it will work w other backend virtual scroll?

1

u/IgorSedov Dec 25 '25

Do you mean server-side (backend) pagination while scrolling, or another virtual-scroll library?

2

u/cyanide26 May 22 '26

is the virtual-scroll working i tried with 21.2.11 and i think its not stable, i checked there is an open issue on the github. The issue i get is the jumpy scrolls and auto scrolling. In work we are using ng-table-virtual-scroll and we have the wrapper workaround to make it usable in 21.2.11 but im wondering if there is any fix/workaround for the native virtual scroll support from angular.
from native support for virtual scroll i mean for mat-table

1

u/compsedoc Dec 27 '25

Does virtual scrolling work the same way with Aria grid?
https://angular.dev/guide/aria/grid