Open
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 <Virtualize>
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:
<div>
<Virtualize Items="@images" ItemWidth="200" ItemHeight="200">
<div style="display: inline-block; width: 200px; height: 200px;">
<img src="@context.Url" />
</div>
</Virtualize>
</div>
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.
Metadata
Metadata
Assignees
Labels
Work that is important, but not critical for the releaseThis issue impacts only small number of customersIncludes: Blazor, Razor ComponentsThis issue represents an ask for new feature or an enhancement to an existing oneThis issue is related to the Blazor Virtualize componentThis label is used by an internal tool