Lazy load the drop down items while scrolling in Blazor

1.8k Views Asked by At

Please let me know on how to load the drop-down items in 'InputSelect' control of the blazor while scrolling. I have 3000 drop down items. On the scroll, i want only the next 20 records only to be loaded on demand not all 3000 items at a time.

1

There are 1 best solutions below

3
On

Have a look at this. Its a Virtualize component handling exactly what your after. However, as far as I'm aware of it's only available in .NET 5 RC1. You can try a .NET 5 RC1 build here.