Skip to content

fix(grids): preserve column formatting in newly added rows - 22.2.x - #17833

Open
teodosiah wants to merge 4 commits into
22.2.xfrom
thristodorova/fix-17693-22.2.x
Open

teodosiah wants to merge 4 commits into
22.2.xfrom
thristodorova/fix-17693-22.2.x

Conversation

@teodosiah

Copy link
Copy Markdown
Contributor

Closes #17693

Description

Motivation / Context

Type of Change (check all that apply):

  • Bug fix
  • New functionality
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (no functional changes)
  • Documentation
  • Demos
  • CI/CD
  • Tests
  • Changelog
  • Skills/Agents

Component(s) / Area(s) Affected:

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Automated e2e tests

Test Configuration:

  • Angular version:
  • Browser(s):
  • OS:

Screenshots / Recordings

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them
  • Accessibility (ARIA, keyboard navigation, focus management) has been verified

Copilot AI balanced review requested due to automatic review settings October 21, 2026 10:12
@teodosiah teodosiah changed the title Thristodorova/fix 17693 22.2.x fix(grids): preserve column formatting in newly added rows - 22.2.x- #17810 Oct 21, 2026
@teodosiah teodosiah changed the title fix(grids): preserve column formatting in newly added rows - 22.2.x- #17810 fix(grids): preserve column formatting in newly added rows - 22.2.x Oct 21, 2026

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.

🟡 Changes recommended

Repeated demo additions create duplicate primary keys, causing deletion to target the wrong record.

1 open issue
What changed in this PR

Fixes #17693 by applying column formatting to non-editing cells in uncommitted add rows.

Changes:

  • Applies formatters and pipe arguments across standard, expandable, and tree-grid cells.
  • Adds formatting regression tests across grid variants.
  • Updates the add-row demo’s primary key and sample record.
File Description
src/​app/​grid-add-row/​grid-add-row.sample.ts Updates the inserted demo record.
src/​app/​grid-add-row/​grid-add-row.sample.html Configures the ID primary key.
projects/​igniteui-angular/​grids/​tree-grid/​src/​tree-grid-add-row-ui.spec.ts Tests add-row date formatting.
projects/​igniteui-angular/​grids/​tree-grid/​src/​tree-cell.component.html Formats tree-grid add-row values.
projects/​igniteui-angular/​grids/​hierarchical-grid/​src/​hierarchical-grid-add-row.spec.ts Tests hierarchical-grid date formatting.
projects/​igniteui-angular/​grids/​grid/​src/​grid-add-row.spec.ts Tests typed formatting and expandable cells.
projects/​igniteui-angular/​grids/​grid/​src/​expandable-cell.component.html Formats values and preserves zero.
projects/​igniteui-angular/​grids/​core/​src/​cell.component.html Formats standard add-row values.

Review effort: Balanced

Comment thread src/app/grid-add-row/grid-add-row.sample.ts Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

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.

🟢 Approval recommended

Static review found no blocking issues in this focused fix and its regression coverage; tests were not executed.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@teodosiah teodosiah added ❌ status: awaiting-test PRs awaiting manual verification grid: row-adding labels Oct 21, 2026
@viktorkombov viktorkombov added ✅ status: verified Applies to PRs that have passed manual verification and removed ❌ status: awaiting-test PRs awaiting manual verification labels Oct 23, 2026
@viktorkombov

viktorkombov commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Verified. One small thing: this backport doesn't add a CHANGELOG.md entry, while the other 22.2.x backports do (e.g. #17758). Could you add the grid entry here too, in the same section as in #17810?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

grid: row-adding ✅ status: verified Applies to PRs that have passed manual verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants