Skip to content

fix: vertical scrolling in FluentDataGrid with lots of columns #3620

@vpetit-reimagine

Description

@vpetit-reimagine

🐛 Bug Report

When using FluentDataGrid with a lot of columns (that take more horizontal space than the current screen resolution), it is impossible to scroll down vertically from the right of the screen.

💻 Repro or Code Sample

Please use the attached project as a showcase example.

  1. Open the page and scroll horizontally to the right of the screen (first left column should not be visible anymore)
  2. Vertically scroll (mouse/touchpad/scrollbar)

🤔 Expected Behavior

The table should display new rows as usual

😯 Current Behavior

The table does scroll but no new rows are displayed until you scroll back to the left of the page

🔦 Context

  • We are using Virtualize and a lot of @if (_columns.Contains("ColumnName") to determine which columns to display (user selected)
  • We have a table with ~4k rows and more than 20 columns
  • They also contain other fluent elements (not needed to reproduce the issue)

🌍 Your Environment

  • OS & Device: Windows and Linux
  • Browser Microsoft Edge, Chrome, Firefox
  • .NET and Fluent UI Blazor library Version: 8 and latest FluentUI version

FluentUiDataGridDemo.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNew issue. Needs to be looked at

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions