File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
projects/igniteui-angular/src/lib/grids Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7277,9 +7277,10 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
7277
7277
columnsArray = this . getSelectableColumnsAt ( each ) ;
7278
7278
columnsArray . forEach ( ( col ) => {
7279
7279
if ( col ) {
7280
- const key = headers ? col . header || col . field : col . field ;
7280
+ const key = ! this . isPivot && headers ? col . header || col . field : col . field ;
7281
7281
const rowData = source [ row ] . ghostRecord ? source [ row ] . recordRef : source [ row ] ;
7282
- const value = resolveNestedPath ( rowData , col . field ) ;
7282
+ const value = this . isPivot ? rowData . aggregationValues . get ( col . field )
7283
+ : resolveNestedPath ( rowData , col . field ) ;
7283
7284
record [ key ] = formatters && col . formatter ? col . formatter ( value , rowData ) : value ;
7284
7285
if ( columnData ) {
7285
7286
if ( ! record [ key ] ) {
You can’t perform that action at this time.
0 commit comments