Skip to content

fix(pivotGrid): Set pivot date dimension locale data to avoid performance drops.#17399

Open
skrustev wants to merge 1 commit into
22.0.xfrom
skrastev/fix-pivot-perf-22.0.x
Open

fix(pivotGrid): Set pivot date dimension locale data to avoid performance drops.#17399
skrustev wants to merge 1 commit into
22.0.xfrom
skrastev/fix-pivot-perf-22.0.x

Conversation

@skrustev

@skrustev skrustev commented Jul 8, 2026

Copy link
Copy Markdown
Member

IgniteUI/igniteui-blazor#232

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:

PivotGrid

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Automated e2e tests

Test Configuration:

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

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

@skrustev skrustev requested a review from MayaKirova July 8, 2026 06:35
@skrustev skrustev added the ❌ status: awaiting-test PRs awaiting manual verification label Jul 8, 2026
Copilot AI review requested due to automatic review settings July 8, 2026 06:35

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 targets a PivotGrid performance regression by ensuring IgxPivotDateDimension instances format month names using an explicit locale (and are kept in sync with the grid’s resourceStrings/locale), rather than relying on implicit defaults.

Changes:

  • Propagates the PivotGrid locale and resourceStrings into configured IgxPivotDateDimension instances.
  • Updates IgxPivotDateDimension month formatting to pass an explicit locale into formatDateTime(...).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
projects/igniteui-angular/grids/pivot-grid/src/pivot-grid.component.ts Adds date-dimension locale/resource propagation and hooks it into pivot configuration + resource change flow.
projects/igniteui-angular/grids/core/src/pivot-grid-dimensions.ts Adds an internal locale field and uses it for month name formatting via formatDateTime.

Comment thread projects/igniteui-angular/grids/pivot-grid/src/pivot-grid.component.ts Outdated
@skrustev skrustev force-pushed the skrastev/fix-pivot-perf-22.0.x branch from 8654113 to 5f58be5 Compare July 8, 2026 06:39
this._pivotConfiguration = value;
this.emitInitEvents(this._pivotConfiguration);
this.filteringExpressionsTree = PivotUtil.buildExpressionTree(value);
this.setDateDimensionsLocaleData();

@MayaKirova MayaKirova Jul 8, 2026

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.

Maybe also call this on pivotConfigurationChange, since someone could potentially add a date dimension runtime via the api. Or toggle it on via the UI/Api.

* Sets the locale and resourceStrings data based on the grid's properties for all IgxPivotDateDimensions in the config.
*/
protected setDateDimensionsLocaleData() {
const topDimensions = [...this.columnDimensions, ...this.rowDimensions];

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.

Not sure if the issue is applicable to the filterDimensions.

Probably yes, because it would still go though the memberFunction for it. If so then we should filterDimensions to the collection here.

@dkamburov dkamburov added ✅ status: verified Applies to PRs that have passed manual verification and removed ❌ status: awaiting-test PRs awaiting manual verification labels Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

grid: pivot version: 22.0.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