File tree Expand file tree Collapse file tree 2 files changed +16
-15
lines changed
projects/igniteui-angular/src/lib/grids/pivot-grid Expand file tree Collapse file tree 2 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -806,6 +806,7 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
806
806
) ;
807
807
}
808
808
columns = this . generateColumnHierarchy ( fieldsMap , data ) ;
809
+ this . reflow ( ) ;
809
810
this . _autoGeneratedCols = columns ;
810
811
811
812
this . columnList . reset ( columns ) ;
@@ -889,7 +890,7 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
889
890
}
890
891
}
891
892
} ) ;
892
- this . reflow ( ) ;
893
+
893
894
return columns ;
894
895
}
895
896
Original file line number Diff line number Diff line change @@ -24,17 +24,16 @@ export class PivotGridSampleComponent {
24
24
25
25
public pivotConfigHierarchy : IPivotConfiguration = {
26
26
columns : [
27
-
28
27
{
29
28
memberName : 'Country' ,
30
29
enabled : true
31
30
}
32
- ]
33
- ,
34
- rows : [ {
35
- memberName : 'City' ,
36
- enabled : true
37
- } ,
31
+ ] ,
32
+ rows : [
33
+ {
34
+ memberName : 'City' ,
35
+ enabled : true
36
+ } ,
38
37
new IgxPivotDateDimension (
39
38
{
40
39
memberName : 'Date' ,
@@ -43,17 +42,18 @@ export class PivotGridSampleComponent {
43
42
{
44
43
months : false
45
44
}
46
- ) , {
47
- memberFunction : ( ) => 'All' ,
48
- memberName : 'AllProducts ',
49
- enabled : true ,
50
- childLevel :
51
- {
45
+ ) ,
46
+ {
47
+ memberFunction : ( ) => 'All ',
48
+ memberName : 'AllProducts' ,
49
+ enabled : true ,
50
+ childLevel : {
52
51
memberFunction : ( data ) => data . ProductCategory ,
53
52
memberName : 'ProductCategory' ,
54
53
enabled : true
55
54
}
56
- } ] ,
55
+ }
56
+ ] ,
57
57
values : [
58
58
{
59
59
member : 'UnitsSold' ,
You can’t perform that action at this time.
0 commit comments