File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
projects/igniteui-angular/src/lib/grids/pivot-grid Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ export class PivotUtil {
84
84
prevDims : IPivotDimension [ ] ,
85
85
currDimLvl : number ) {
86
86
const data = records ;
87
+ const dimMaxLvl = PivotUtil . getDimensionDepth ( dim ) ;
87
88
for ( let i = 0 ; i < data . length ; i ++ ) {
88
89
const rec = data [ i ] ;
89
90
const field = dim . memberName ;
@@ -97,7 +98,7 @@ export class PivotUtil {
97
98
expansionStates . get ( expansionRowKey ) ;
98
99
if ( rec [ field + '_' + pivotKeys . records ] &&
99
100
rec [ field + '_' + pivotKeys . records ] . length > 0 &&
100
- isExpanded && lvl > 0 ) {
101
+ ( ( isExpanded && lvl > 0 ) || ( dimMaxLvl == currDimLvl ) ) ) {
101
102
let dimData = rec [ field + '_' + pivotKeys . records ] ;
102
103
if ( dim . childLevel ) {
103
104
if ( PivotUtil . getDimensionDepth ( dim ) > 1 ) {
You can’t perform that action at this time.
0 commit comments