Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,9 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
onResourceChangeHandle(this.destroy$, () => {
this.setDateDimensionsLocaleData();
// Since the columns are kinda static, due to assigning DisplayName on init, they need to be regenerated.
this.setupColumns();
Promise.resolve().then(() => {
this.setupColumns();
});
}, this);
});
if (this.valueChipTemplateDirective) {
Expand Down
10 changes: 0 additions & 10 deletions projects/igniteui-angular/grids/pivot-grid/src/pivot-grid.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { IgxPivotRowDimensionContentComponent } from './pivot-row-dimension-cont
import { IgxPivotGridComponent } from './pivot-grid.component';
import { IgxGridCell } from 'igniteui-angular/grids/core';
import { IGridCellEventArgs } from 'igniteui-angular/grids/core';
import { getI18nManager } from 'igniteui-i18n-core';

const CSS_CLASS_LIST = 'igx-drop-down__list';
const CSS_CLASS_ITEM = 'igx-drop-down__item';
Expand Down Expand Up @@ -843,9 +842,6 @@ describe('IgxPivotGrid #pivotGrid', () => {

describe('IgxPivotGrid Features #pivotGrid', () => {
it('should show excel style filtering via dimension chip.', async () => {
// Weird angular error caused by calling setupColumns() on opening a filter. Disable it for now.
(getI18nManager() as any).removeAllListeners();

const pivotGrid = fixture.componentInstance.pivotGrid;
expect(pivotGrid.filterStrategy).toBeInstanceOf(DimensionValuesFilteringStrategy);
const excelMenu = GridFunctions.getExcelStyleFilteringComponents(fixture, 'igx-pivot-grid')[1];
Expand Down Expand Up @@ -879,9 +875,6 @@ describe('IgxPivotGrid #pivotGrid', () => {
});

it('should filter rows via excel style filtering dimension chip.', async () => {
// Weird angular error caused by calling setupColumns() on opening a filter. Disable it for now.
(getI18nManager() as any).removeAllListeners();

const pivotGrid = fixture.componentInstance.pivotGrid;
const headerRow = fixture.nativeElement.querySelector('igx-pivot-header-row');
const rowChip = headerRow.querySelector('igx-chip[id="All"]');
Expand Down Expand Up @@ -1126,9 +1119,6 @@ describe('IgxPivotGrid #pivotGrid', () => {
});

it('should show complex tree and allow filtering for Date dimension', async () => {
// Weird angular error caused by calling setupColumns() on opening a filter. Disable it for now.
(getI18nManager() as any).removeAllListeners();

const pivotGrid = fixture.componentInstance.pivotGrid;
pivotGrid.pivotConfiguration.rows = [new IgxPivotDateDimension(
{
Expand Down
Loading