Repository navigation
Adds footer templates for the QuickGrid and its columns - #67148
Closed
NanthiniMahalingam wants to merge 13 commits into
Closed
NanthiniMahalingam wants to merge 13 commits into
NanthiniMahalingam wants to merge 13 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the Blazor QuickGrid component to support rendering footer content, addressing the common need for aggregates and summary UI in tabular data (e.g., totals, counts, pagination summaries).
Changes:
- Adds
QuickGrid<TGridItem>.FooterTemplatefor a grid-level full-width footer row. - Adds
ColumnBase<TGridItem>.FooterTemplatefor per-column footer cells rendered in a footer row. - Updates QuickGrid rendering/CSS and adds a new test file + public API tracking entries.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor.cs | Adds FooterTemplate parameter and a cached footer render fragment delegate. |
| src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor | Renders <tfoot> containing column footers and/or grid footer when templates are set. |
| src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/Columns/ColumnBase.razor.cs | Adds FooterTemplate parameter to columns. |
| src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor.css | Adds footer-cell alignment selectors (currently redundant with existing rules). |
| src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/PublicAPI.Unshipped.txt | Tracks new public API surface for both footer template parameters. |
| src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/test/QuickGridFooterTemplateTest.cs | Adds tests intended to validate footer behavior and sorting interactions. |
… into feature-54895 # Conflicts: # src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/PublicAPI.Unshipped.txt
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds footer templates for the QuickGrid and its columns as render fragments
Use case
ColumnBase.FooterTemplate — per-column, use when each column has its own aggregate value:
QuickGrid.FooterTemplate — full-width, use when the footer content spans the whole table:
Output
QuickGridFooterTemplateDemo.mp4
Fixes #54895 , #58711