Skip to content

Commit b16fd73

Browse files
MKirovaMKirova
authored andcommitted
Ensure row data is updated if row dimension size changes.
1 parent c839f15 commit b16fd73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-row.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export class IgxPivotRowComponent extends IgxRowDirective<IgxPivotGridComponent>
9999
*/
100100
public ngOnChanges(changes: SimpleChanges) {
101101
const rowDimConfig = this.grid.rowDimensions;
102-
if (changes.rowData) {
102+
if (changes.rowData || rowDimConfig.length !== this.rowDimensionData.length) {
103103
// generate new rowDimension on row data change
104104
this.rowDimensionData = [];
105105
this.viewRef.clear();

src/app/pivot-grid/pivot-grid.sample.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class PivotGridSampleComponent {
2727
{
2828
memberName: 'Country',
2929
enabled: true,
30-
width: '500px'
30+
width: '300px'
3131
}
3232
]
3333
,

0 commit comments

Comments
 (0)