Skip to content

[Bug]: If DataGrid is used with paginated data, aria-rowcount is set to first page size and incorrect and there is no way to change it #34432

@DarynaAkhmedova

Description

@DarynaAkhmedova

We use DataGrid component with the paginated data. When first page is loaded, DataGrid aria-rowcount is set to first page size. However, based on the docs: "the aria-rowcount attribute defines the total number of rows in a table, grid, or treegrid".

When we try to set aria-rowcount attribute "manually" as a DataGrid prop, it is not updated.

We could also use another approach, where by adding hidden rows to the bottom of DataGrid, we would get correct aria-rowcount, but it affects scroll of the grid. DataGrid reserves the place for those hidden rows based on the itemSize property of the data grid:
Image

Is there any other way to fix it? If not, could you please accept aria-rowcount as a property or suggest any other solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution: Soft CloseSoft closing inactive issues over a certain period

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions