@@ -17,10 +17,12 @@ export class GridGroupBySampleComponent implements OnInit {
17
17
private grid1 : IgxGridComponent ;
18
18
19
19
public data : Array < any > ;
20
+ public data2 : any [ ] = [ ] ;
20
21
public hideGroupedColumns = false ;
21
22
public expState = [ ] ;
22
23
public columns : Array < any > ;
23
24
public groupingExpressions : Array < ISortingExpression > ;
25
+ public perfGrpExpr = [ { fieldName : 'FIELD' , dir : SortingDirection . Asc } ] ;
24
26
public summaryMode : GridSummaryCalculationMode = GridSummaryCalculationMode . rootLevelOnly ;
25
27
public summaryModes = [ ] ;
26
28
public selectionModes : any [ ] ;
@@ -31,6 +33,13 @@ export class GridGroupBySampleComponent implements OnInit {
31
33
constructor ( @Inject ( DisplayDensityToken ) public displayDensityOptions : IDisplayDensityOptions ) { }
32
34
33
35
public ngOnInit ( ) : void {
36
+ for ( let i = 0 ; i < 60 ; i ++ ) {
37
+ this . data2 . push ( ...Array ( 10 ) . fill ( { STATUS : 'A' , FIELD : 'some text' } ) ) ;
38
+ this . data2 . push ( ...Array ( 10 ) . fill ( { STATUS : 'B' , FIELD : 'some text' } ) ) ;
39
+ this . data2 . push ( ...Array ( 10 ) . fill ( { STATUS : 'C' , FIELD : 'some text' } ) ) ;
40
+ this . data2 . push ( ...Array ( 10 ) . fill ( { STATUS : 'D' , FIELD : 'some text' } ) ) ;
41
+ }
42
+ this . data2 = this . data2 . map ( ( rec , index ) => ( { ...rec , ID : index } ) ) ;
34
43
this . columns = [
35
44
{ dataType : 'string' , field : 'ID' , width : 100 , hidden : true } ,
36
45
{ dataType : 'string' , field : 'CompanyName' , width : 300 , groupable : true } ,
0 commit comments