Skip to content

Commit 8957bfb

Browse files
committed
fix(pivot): Ensure that bottom level dimensions get populated regardless of expansion.
1 parent 7aecb7a commit 8957bfb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export class PivotUtil {
8484
prevDims: IPivotDimension[],
8585
currDimLvl: number) {
8686
const data = records;
87+
const dimMaxLvl = PivotUtil.getDimensionDepth(dim);
8788
for (let i = 0; i < data.length; i++) {
8889
const rec = data[i];
8990
const field = dim.memberName;
@@ -97,7 +98,7 @@ export class PivotUtil {
9798
expansionStates.get(expansionRowKey);
9899
if (rec[field + '_' + pivotKeys.records] &&
99100
rec[field + '_' + pivotKeys.records].length > 0 &&
100-
isExpanded && lvl > 0) {
101+
((isExpanded && lvl > 0) || (dimMaxLvl == currDimLvl))) {
101102
let dimData = rec[field + '_' + pivotKeys.records];
102103
if (dim.childLevel) {
103104
if (PivotUtil.getDimensionDepth(dim) > 1) {

0 commit comments

Comments
 (0)