What is the <Virtualize> component, and how does it improve performance for large datasets?
Last updated
<Virtualize>renders only the visible rows (plus a buffer), using spacer elements to keep the scrollbar correct, which drastically cuts DOM nodes and render work.Bind an in-memory collection via
Items, or useItemsProviderto fetch only the requested slice on demand. Tune withItemSize,OverscanCountand aPlaceholder.Works best with uniform row heights inside a scrollable container of known height.
- https://learn.microsoft.com/en-us/aspnet/core/blazor/components/virtualization?view=aspnetcore-10.0
- https://learn.microsoft.com/en-us/answers/questions/1855795/how-to-optimize-blazor-server-performance-with-lar
- https://learn.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-11?view=aspnetcore-10.0
- https://code-maze.com/blazor-webassembly-component-virtualization-with-web-api/
- https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.components.web.virtualization?view=aspnetcore-10.0
- https://learn.microsoft.com/en-us/aspnet/core/blazor/performance/rendering?view=aspnetcore-10.0
- https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/performance/rendering.md
- https://www.telerik.com/blogs/blazor-basics-improved-performance-component-virtualization