Skip to content

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

Open
NanthiniMahalingam wants to merge 4 commits into
dotnet:mainfrom
NanthiniMahalingam:feature_54895
Open

NanthiniMahalingam wants to merge 4 commits into
dotnet:mainfrom
NanthiniMahalingam:feature_54895

Conversation

@NanthiniMahalingam

@NanthiniMahalingam NanthiniMahalingam commented Sep 24, 2026 •

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 #58711

@NanthiniMahalingam
NanthiniMahalingam requested a review from a team as a code owner September 24, 2026 06:49
Copilot AI lite review requested due to automatic review settings September 24, 2026 06:49
@github-actions github-actions Bot added the area-blazor Includes: Blazor, Razor Components label Sep 24, 2026
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Sep 24, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

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.

Copilot review overview

🟡 Changes recommended

One or more issues must be addressed before approval.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 Medium severity

Open (2)
What changed in this PR

Adds grid-level and per-column footer templates to QuickGrid, including rendering and API baselines.

Changes:

  • Adds FooterTemplate parameters to QuickGrid and ColumnBase.
  • Renders column and full-width grid footers with ARIA row metadata.
  • Adds comprehensive renderer-level tests.
File Description
src/​Components/​QuickGrid/​Microsoft.AspNetCore.Components.QuickGrid/​test/​QuickGridFooterTemplateTest.cs Updated as part of this pull request.
src/​Components/​QuickGrid/​Microsoft.AspNetCore.Components.QuickGrid/​src/​QuickGrid.razor.cs Updated as part of this pull request.
src/​Components/​QuickGrid/​Microsoft.AspNetCore.Components.QuickGrid/​src/​QuickGrid.razor Updated as part of this pull request.
src/​Components/​QuickGrid/​Microsoft.AspNetCore.Components.QuickGrid/​src/​PublicAPI.Unshipped.txt Updated as part of this pull request.
src/​Components/​QuickGrid/​Microsoft.AspNetCore.Components.QuickGrid/​src/​Columns/​ColumnBase.razor.cs Updated as part of this pull request.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@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.

@dotnet-policy-service dotnet-policy-service Bot added the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Oct 1, 2026
@PureWeen

PureWeen commented Oct 2, 2026

Copy link
Copy Markdown
Member

/review

@github-actions github-actions Bot 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.

STATUS: FINDINGS

PR: #69478
HEAD_SHA: 3206d08e220d3dce9f1ed54e52efcf814ffaa348
MERGE_BASE_SHA: b2629d6116b595b8ad0c2b3de8f415bc2dddad9c
BASE_TIP_SHA: 4449eb585c8c82b5cf0e6f5d88f7ba73cbcadf62
GUIDANCE_SOURCE: immutable commit 4449eb585c8c82b5cf0e6f5d88f7ba73cbcadf62
PATH: per-guide

NEW_FINDINGS: 1

  • P3, high confidence: the default theme styles body cells but not the newly added footer cells, leaving footer content misaligned with body columns. See the attached inline comment.

EXISTING_FEEDBACK_COVERAGE:

  • discussion_r4090786005 is a source-confirmed duplicate: on a short non-virtualized paginated page, filler rows extend to ItemsPerPage while footer ARIA indices/count use the returned-item count.
  • discussion_r4090786032 already requests browser coverage; it was not duplicated as a new behavioral finding.

UNRESOLVED: none.

GUIDES:

  • docs/CrossCuttingGuidance.md: complete; all in-scope topics and applicable policies assessed. No read failures or unresolved candidates.
  • docs/BlazorComponentsGuidance.md: complete; all in-scope topics, applicable policies, and readable architecture context assessed. No read failures or unresolved candidates.
  • Requested workers: general-purpose / gpt-5.6-sol; runtime-reported type/model unavailable (unknown).

DISCARDED:

  • API-approval metadata is human-owned and the frozen policy permits implementation/merge before approval; approval remains required before RTM inclusion.
  • Trimming/AOT, cross-render-mode, stale-footer, and aggregation-recalculation concerns were not supported by the exact frozen source paths.
  • Formatting-only observations and test-only requests without a distinct concrete product effect were not findings.

UNCOVERED: no materially changed product area lacked a routed specialist guide. Formal API approval remains human-owned.

TEST_BOUNDARY: source-only proof. PR code, tests, CI, browser workflows, assistive-technology behavior, computed browser appearance, and red/green validation were not executed. Security assessment was explicitly excluded by the trusted bundle.

LIMITATIONS: tracked Git bytes only; symlink, submodule, and LFS targets are inert. Prepared feedback is frozen and cannot include comments posted afterward. Publication is attributed to the frozen head SHA.

Generated by ASP.NET Core Pull Request Review for #69478 · copilot · gpt56 · 272.3 AIC · ⌖ 11.4 AIC · ⊞ 17.5K
Comment /review to run again

@PureWeen

Copy link
Copy Markdown
Member

/review

@github-actions github-actions Bot 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.

Source-only review of frozen head 51ee605b01bb9433fd6d9d4306c266449e350491 found one new P3 issue: the public ColumnBase.Class and Align documentation no longer describes their footer-cell behavior.

Both routed guides completed independently with general-purpose workers on gpt-5.6-sol: docs/CrossCuttingGuidance.md and docs/BlazorComponentsGuidance.md. Security assessment and execution of PR code, tests, CI, and browser workflows were excluded by the trusted bundle. No materially changed area lacked a routed guide.

Prepared feedback coverage: discussion_r4090786005 is addressed by the pagination-aware ARIA row count/index logic; discussion_r4090786032 is addressed by the added E2E browser coverage; discussion_r4169176746 is addressed by the tfoot default-theme selector. None remains a duplicate of the new finding. Formal public API approval is human-owned and remains unresolved because approval-process metadata is external to the frozen bundle.

Provenance: PR dotnet/aspnetcore#69478; merge base 0fe823627dddb94849b8a737b547b14dff2f46ca; base tip and immutable guidance commit 4f556f73a610b386e5ec29355a300e493d30c4c5. Proof is source-only from tracked frozen Git bytes; runtime/browser behavior was not executed, and prepared feedback cannot include later comments.

Generated by ASP.NET Core Pull Request Review for #69478 · copilot · gpt56 · 241 AIC · ⌖ 10.5 AIC · ⊞ 20.2K
Comment /review to run again

{
foreach (var col in _columns)
{
<td class="grid-column-footer-cell @ColumnClass(col)" @key="@col">@col.FooterTemplate</td>

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.

ColumnBase.Class and Align now affect footer cells, but their public XML docs still say they apply only to header and body cells.

src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor:143 · P3

Minimal repro: render <PropertyColumn Align="Align.Right" Class="total" FooterTemplate="..." />; this call to ColumnClass(col) applies both values to the footer cell despite the documented scope. Update both parameter summaries to say “header, body, and footer cells.”

@PureWeen PureWeen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI-agent review of head 51ee605.

Human-directed and GitHub Copilot-generated.

/// be rendered for this column. When any column in the grid has a <see cref="FooterTemplate"/>, the
/// grid will render a footer row in which each column renders its <see cref="FooterTemplate"/>.
/// </summary>
[Parameter] public RenderFragment? FooterTemplate { get; set; }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Adding this parameter can break existing custom columns that already declare [Parameter] FooterTemplate (including casing variants). During first render, Blazor enumerates inherited parameters case-insensitively and throws declares more than one parameter before processing even an empty ParameterView; DeclaredParameterClashesWithInheritedParameter_Throws codifies this behavior. The same issue applies to QuickGrid.FooterTemplate. Please establish an approved compatibility plan before shipping these members—for example, use narrower names such as ColumnFooterTemplate and GridFooterTemplate, or obtain explicit breaking-change approval.

Human-directed and GitHub Copilot-generated.

@PureWeen

Copy link
Copy Markdown
Member

/review

@PureWeen

Copy link
Copy Markdown
Member

Copilot's local review panel found no issues to raise at this commit.

Reviewed commit: 600ed6fa8b6dec6ede2a3d5460550d11f9493e16. The GPT-5.6, GPT-6.1, and Opus 5.5 arms each completed with no new findings. Both earlier agent comments are addressed by the footer-cell documentation updates and the ColumnFooterTemplate / GridFooterTemplate names. This was source review, not runtime or browser verification.

Informational only: the source reviews could not establish the contribution acknowledgment or separate API proposal/review records for the final public API shape. This is unknown process metadata, not a claim that those records are absent. API approval is not a pre-merge blocker, but remains required before RTM inclusion.

Posted for informational purposes so the author can confirm the verifier didn't discard or leave unresolved a real finding; this item does not block agent-reviewed-approved.

Human-directed and GitHub Copilot-generated.

@NanthiniMahalingam
NanthiniMahalingam requested review from a team and wtgodbe as code owners November 11, 2026 07:12
@PureWeen

Copy link
Copy Markdown
Member

/review

@github-actions github-actions Bot 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.

Source-only review of frozen head 44d9e4508b6189d92aae797f2c836f84da170c21 found one unresolved P3 item: the unrelated-looking googletest submodule pointer change has a confirmed changed line and focused-change contract, but the frozen bundle cannot establish the submodule-content effect or intent.

Both routed guides completed independently with review-guide-worker on gpt-5.6-sol: docs/CrossCuttingGuidance.md and docs/BlazorComponentsGuidance.md. Existing feedback about pagination ARIA accounting, browser coverage, default-theme footer spacing, and footer-cell API documentation is addressed by the frozen source and was not republished.

No materially changed product area lacked a routed guide. Formal public API approval remains human-owned. Review proof is source-only: PR code, tests, CI, browser workflows, samples, submodule contents, and runtime behavior were not executed or materialized; security assessment was excluded by the trusted bundle. Provenance is the immutable guidance commit d8754d1fc8751b5a8ee7e8d0d28df4052cf63e77, merge base 877db0add09f12f0898df559b75e77d0398ba384, and frozen prepared feedback, which cannot include later comments.

Generated by ASP.NET Core Pull Request Review for #69478 · copilot · gpt56 · 164.9 AIC · ⌖ 12.4 AIC · ⊞ 18.8K
Comment /review to run again

Comment thread src/submodules/googletest
@@ -1 +1 @@
Subproject commit 24990589481d2ed05602a304bee5ca716273762a
Subproject commit a8380b01a25ebdb130097b607b3afed2a58d04ba

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.

P3 — [UNRESOLVED] Is the googletest submodule bump required by the QuickGrid footer change?

The frozen diff changes this pointer from 24990589481d2ed05602a304bee5ca716273762a to a8380b01a25ebdb130097b607b3afed2a58d04ba, while the contribution policy requires focused PRs without unrelated changes.

Why unresolved: The bundle contains only unmaterialized pointer records. Materialized source for both revisions, or a binding dependency/intent record, is needed to prove the consumer-visible difference and whether this bump is required.

Minimal repro: Check out frozen head 44d9e4508b6189d92aae797f2c836f84da170c21 and run git submodule update --init src/submodules/googletest; Git selects the new revision, but this source-only review cannot inspect its contents.

What goes wrong: If unrelated, consumers receive an unintended third-party revision and the PR is no longer focused. If required, the frozen evidence does not establish that dependency.

Suggested fix: Restore the base pointer unless the revision change is intentional and its dependency on this feature can be established.

Comment on lines +56 to +60
/// <summary>
/// Optional. A template to render in the table footer area. If specified, the template will
/// be rendered inside a single &lt;tfoot&gt; row which spans all columns.
/// </summary>
[Parameter] public RenderFragment? GridFooterTemplate { get; set; }

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.

Is the GridFooterTemplate public API addition needed? On the header side, QuickGrid has only the per-column ColumnBase.HeaderTemplate, with no grid-wide header template. What does a grid-level footer enable?

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.

Could we add the footer to an existing QuickGrid test component, such as the one used for header tests?

Comment thread src/submodules/googletest

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.

Revert this change. Running git submodule update -- src\submodules\googletest after merging or rebasing on main keeps your local submodule on the commit main records, so the old one doesn't get committed again.

This branch was previously deployed

1 inactive (outdated) deployment
copilot-pat-pool — 3206d08e Deployed Sep 24, 2026 by dotnet-policy-service[bot] via pat_pool #1476
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-reviewed-needs-changes 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.

Footer in QuickGrid

4 participants