Skip to content

fix(grid): correct Excel filter virtual sizing - 22.1.x - #17561

Merged
ChronosSF merged 3 commits into
22.1.xfrom
vkombov/fix-17521-22.1.x
Sep 4, 2026
Merged

fix(grid): correct Excel filter virtual sizing - 22.1.x#17561
ChronosSF merged 3 commits into
22.1.xfrom
vkombov/fix-17521-22.1.x

Conversation

@viktorkombov

Copy link
Copy Markdown
Contributor

Closes #17513
Closes #17521

Description

Uses the first rendered Excel-style filter item to initialize the virtual item size. Theme-specific spacing is kept within the measured item, stabilizing the scrollbar and ensuring the last Indigo item is reachable.

Motivation / Context

The configured virtual item size could differ from the rendered height, causing scrollbar thumb lag. In the Indigo theme, the scroll range could also end before the last item was fully visible.

Type of Change (check all that apply):

  • Bug fix
  • New functionality
  • Breaking change
  • Refactoring (no functional changes)
  • Documentation
  • Demos
  • CI/CD
  • Tests
  • Changelog
  • Skills/Agents

Component(s) / Area(s) Affected:

  • Grid Excel-style filtering
  • Fluent and Indigo styles
  • Virtual item sizing

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Automated e2e tests

Added unit coverage verifying that the rendered item height is applied to the virtualizer. Manually verified the Indigo StackBlitz reproduction by dragging the scrollbar thumb to the bottom.

Test Configuration:

  • Angular version: 22
  • Browser(s): Chrome
  • OS: Windows

Screenshots / Recordings

See the recording attached to the related issue.

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
  • This PR contains breaking changes
  • This PR includes ng update migrations for breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated
  • Accessibility (ARIA, keyboard navigation, focus management) has been verified

@igdmdimitrov igdmdimitrov added ✅ status: verified Applies to PRs that have passed manual verification and removed ❌ status: awaiting-test PRs awaiting manual verification labels Sep 1, 2026
Copilot AI lite review requested due to automatic review settings September 3, 2026 14:18

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

The Fluent theme rule relies on an undefined CSS variable for border width, making the intended sizing stabilization ineffective.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Fixes Excel-style filtering virtualization sizing in Ignite UI for Angular grids by measuring the first rendered list item height and aligning virtual item sizing and theme spacing, addressing scrollbar thumb lag and unreachable last-item scenarios (notably in Indigo).

Changes:

  • Measure the first rendered Excel filter list item and use it to initialize igxFor virtual itemSize via IgxExcelStyleSearchComponent.
  • Adjust Indigo theme spacing so vertical spacing is included in the measured item size (instead of CSS gap between virtualized items).
  • Add unit test coverage validating that measured rendered height is applied to the virtualizer, and introduce Fluent/Indigo style updates plus a small virtualization sample tweak.
File summaries
File Description
src/app/virtual-for-directive/virtual-for.sample.html Updates virtualization demo markup to apply fixed/variable heights on the list item host element.
src/app/virtual-for-directive/virtual-for.sample.css Adds styling to ensure list item content stretches to the host height in the demo.
projects/igniteui-angular/grids/grid/src/grid-filtering-ui.spec.ts Adds a test asserting rendered item height is used to initialize the Excel filter virtualizer item size.
projects/igniteui-angular/grids/core/src/filtering/excel-style/themes/shared/_indigo.scss Moves Indigo list spacing into the rendered item size to stabilize virtual scrolling range.
projects/igniteui-angular/grids/core/src/filtering/excel-style/themes/shared/_index.scss Includes Fluent Excel filter theme styles in the shared theme forwards.
projects/igniteui-angular/grids/core/src/filtering/excel-style/themes/shared/_fluent.scss Adds Fluent-specific last-item styling intended to keep virtualized item height stable.
projects/igniteui-angular/grids/core/src/filtering/excel-style/excel-style-search.component.ts Measures first rendered list item height and uses it as the Excel filter virtual itemSize.
Review details
  • Files reviewed: 7/7 changed files
  • Comments generated: 1
  • Review effort level: Lite

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

@ChronosSF
ChronosSF enabled auto-merge (squash) September 3, 2026 14:27
@ChronosSF
ChronosSF disabled auto-merge September 4, 2026 07:10
@ChronosSF
ChronosSF merged commit 886d9ed into 22.1.x Sep 4, 2026
5 checks passed
@ChronosSF
ChronosSF deleted the vkombov/fix-17521-22.1.x branch September 4, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

grid: excel-style-filtering version: 22.1.x ✅ status: verified Applies to PRs that have passed manual verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants