Skip to content

Virtualize and displaying content at the end of the list #54742

@JamesNK

Description

@JamesNK

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

Scenario:

  • Page displaying a list of live results.
  • New results are added to the list, with the oldest at the top of the list and newest at the bottom.

When the page loads, we want to show the newest results. That means the scroll position is the bottom of the container. There isn't a built-in feature to do that in Virtualize, so it means loading initial data, virtualize renders the contents with spacers, then using JS interop to scroll to the bottom of the list. That then loads and renders content again.

A similar problem exists when data is added to the list after the page has loaded. Virtualize loads data and renders, JS interop runs to scroll to the bottom of the list and Virtualize loads data and renders again. This is inefficient and it looks like it causes content to flicker as it is added to the list.

Describe the solution you'd like

There should be a way to say to Virtualize that you want to view the end of the list, both when loading and when adding new data. It should be efficent and there isn't flickers of content when loading/adding data.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions