Skip to content

QuickGrid: Adds option to disable rendering of filler rows - #62607

Closed
los93sol wants to merge 4 commits into
dotnet:mainfrom
los93sol:quickgrid-fill-rows-option
Closed

los93sol wants to merge 4 commits into
dotnet:mainfrom
los93sol:quickgrid-fill-rows-option

Conversation

@los93sol

@los93sol los93sol commented Jul 8, 2025

Copy link
Copy Markdown

QuickGrid: Adds option to disable rendering of filler rows

Description

This pull request add an option to PaginationState to disable rendering of filler rows. It keeps the default functionality of rendering the filler rows. I understand that one way to deal with this is to style it with CSS, but in some cases that's impractical, overly complex, and desirable. This provides users the ability to choose how they want it to behave without being forced to use CSS which prevents them from changing from one method to another on a per instance basis. The existing code noted that it should be considered to make it optional as well.

NOTE: I submitted this previously but I needed to move it to a feature branch and continue working it down to ensure all the checks are passing.

@Nick-Stanton I'm tagging you since it looks like you were the original author that added the comment that it should be considered to make this functionality optional.

Fixes #57199 #59096

@los93sol
los93sol requested a review from a team as a code owner July 8, 2025 18:21
@github-actions github-actions Bot added the area-blazor Includes: Blazor, Razor Components label Jul 8, 2025
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Jul 8, 2025
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Thanks for your PR, @@los93sol. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@los93sol

Copy link
Copy Markdown
Author

Just checking if anything is needed on my side to keep this moving?

@ashortland-eqix

Copy link
Copy Markdown

I've created the issue for this one as requested. Hopefully that's enough to get some traction behind this.

@los93sol

Copy link
Copy Markdown
Author

Can someone please review this?

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime.
To make sure no conflicting changes have occurred, please rerun validation before merging. You can do this by leaving an /azp run comment here (requires commit rights), or by simply closing and reopening.

@javiercn

Copy link
Copy Markdown
Member

Thanks for the contribution, and for tracking down the original comment. We are going to hold off on taking the change as written. Adding PaginationState.RenderFillerRows reintroduces the exact behavior the filler rows were added to prevent: with them off, the paginator and anything below the grid jump vertically as you move to a partial last page, which is why we render a full page of rows by default. The recommended way to remove the visual clutter while keeping the layout stable is CSS, either a fixed row height (::deep tr { height: 2em; }) or hiding the unpopulated rows (tbody tr:not([aria-rowindex]) { display: none; }).

There is also a design question we would want to settle ourselves: a rendering switch like this fits better as a QuickGrid option than on PaginationState, which otherwise only holds pagination state, and the root complaint in #57199/#59096 is really the appearance of the empty cells, which we may be better off fixing with default styling.

@javiercn javiercn closed this Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components community-contribution Indicates that the PR has been added by a community member pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Paginator renders extra empty rows when page isn't full of items

3 participants