File tree Expand file tree Collapse file tree 4 files changed +14
-5
lines changed
projects/igniteui-angular/src/lib/grids
src/app/pivot-grid-hierarchy Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -315,6 +315,13 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
315
315
*/
316
316
public dragRowID = null ;
317
317
318
+ /**
319
+ * @hidden @internal
320
+ */
321
+ public get rootSummariesEnabled ( ) : boolean {
322
+ return false ;
323
+ }
324
+
318
325
protected _defaultExpandState = false ;
319
326
private _data ;
320
327
private _filteredData ;
Original file line number Diff line number Diff line change @@ -120,7 +120,8 @@ export class IgxPivotHeaderRowComponent extends IgxGridHeaderRowComponent {
120
120
this . grid . setupColumns ( ) ;
121
121
this . grid . filteringService . clearFilter ( col . memberName ) ;
122
122
this . grid . pipeTrigger ++ ;
123
- this . grid . dimensionsChange . emit ( { dimensions : this . grid . pivotConfiguration . columns , dimensionCollectionType : PivotDimensionType . Row } ) ;
123
+ this . grid . dimensionsChange . emit ( { dimensions : this . grid . pivotConfiguration . columns , dimensionCollectionType : PivotDimensionType . Row } ) ;
124
+ this . grid . reflow ( ) ;
124
125
}
125
126
126
127
public valueRemoved ( event : IBaseChipEventArgs ) {
Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ export function notifyChanges(repaint = false) {
74
74
75
75
76
76
const originalSetter = propDesc ? propDesc . set : null ;
77
-
78
77
propDesc . get = propDesc . get || ( function ( this ) {
79
78
return this [ privateKey ] ;
80
79
} ) ;
@@ -83,15 +82,17 @@ export function notifyChanges(repaint = false) {
83
82
if ( originalSetter ) {
84
83
originalSetter . call ( this , newValue ) ;
85
84
if ( this . grid ) {
86
- this . grid . notifyChanges ( repaint ) ;
85
+ const shouldRepaint = this . grid . isPivot ? false : repaint ;
86
+ this . grid . notifyChanges ( shouldRepaint ) ;
87
87
}
88
88
} else {
89
89
if ( newValue === this [ key ] ) {
90
90
return ;
91
91
}
92
92
this [ privateKey ] = newValue ;
93
93
if ( this . grid ) {
94
- this . grid . notifyChanges ( repaint ) ;
94
+ const shouldRepaint = this . grid . isPivot ? false : repaint ;
95
+ this . grid . notifyChanges ( shouldRepaint ) ;
95
96
}
96
97
}
97
98
} ;
Original file line number Diff line number Diff line change 6
6
placeholder ="Dimension(s) " searchPlaceholder ="Search... ">
7
7
</ igx-combo >
8
8
</ div >
9
- < igx-pivot-grid #grid1 [data] ="origData " [pivotConfiguration] ="pivotConfigHierarchy " (dimensionsChange) ='dimensionChange($event) ' [defaultExpandState] ='true '>
9
+ < igx-pivot-grid [displayDensity] =' "compact" ' #grid1 [data] ="origData " [pivotConfiguration] ="pivotConfigHierarchy " (dimensionsChange) ='dimensionChange($event) ' [defaultExpandState] ='true '>
10
10
</ igx-pivot-grid >
11
11
You can’t perform that action at this time.
0 commit comments