dotnet / dotnet/aspnetcore

Feature Request: Support both width and height in Blazor Virtualize

Open
#28,821 16 comments 19 reactions 0 assignees View on GitHub
affected-few area-blazor enhancement feature-blazor-virtualization Pillar: Complete Blazor Web Priority:2 severity-major
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

### Is your feature request related to a problem? Please describe.
I am trying to display several thousand image thumbnails in a grid layout with Blazor and virtualize scrolling through the thumbnail gallery to improve performance.

### Describe the solution you'd like
The ability to set both the known width and height of the elements within a `` component in Blazor, and have the virtualization take into account multiple items per "row", whether the number of items per "row" is dynamic based on the available width of the container and the provided `ItemWidth`. Something like this:
```








```

### Additional context
Apologies if this is somehow already possible and a couple of hours of Googling hasn't led me to the answer - I'm new to Blazor.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.