Skip to content

Adds footer templates for the QuickGrid and its columns - #67148

Closed
NanthiniMahalingam wants to merge 13 commits into
dotnet:mainfrom
NanthiniMahalingam:feature-54895
Closed

NanthiniMahalingam wants to merge 13 commits into
dotnet:mainfrom
NanthiniMahalingam:feature-54895

Conversation

@NanthiniMahalingam

Copy link
Copy Markdown
Contributor

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:

  • Sum of a numeric column (total sales, total hours)
  • Average price under a price column
  • Min/max value under a date or numeric column
  • Count of non-null values in a column

QuickGrid.FooterTemplate — full-width, use when the footer content spans the whole table:

  • "Showing X of Y results" pagination summary
  • A grand total that combines values from multiple columns
  • A "Load more" or "Export" action button
  • A disclaimer or note that applies to the entire table

Output

QuickGridFooterTemplateDemo.mp4

Fixes #54895 , #58711

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>.FooterTemplate for a grid-level full-width footer row.
  • Adds ColumnBase<TGridItem>.FooterTemplate for 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
@NanthiniMahalingam
NanthiniMahalingam requested review from a team and wtgodbe as code owners September 22, 2026 07:48
@NanthiniMahalingam

Copy link
Copy Markdown
Contributor Author

I have closed this PR #67148 ·and created a new PR #69478 with the intended changes only.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quickgrid footer missing

2 participants