@@ -17,10 +17,12 @@ export class GridGroupBySampleComponent implements OnInit {
1717 private grid1 : IgxGridComponent ;
1818
1919 public data : Array < any > ;
20+ public data2 : any [ ] = [ ] ;
2021 public hideGroupedColumns = false ;
2122 public expState = [ ] ;
2223 public columns : Array < any > ;
2324 public groupingExpressions : Array < ISortingExpression > ;
25+ public perfGrpExpr = [ { fieldName : 'FIELD' , dir : SortingDirection . Asc } ] ;
2426 public summaryMode : GridSummaryCalculationMode = GridSummaryCalculationMode . rootLevelOnly ;
2527 public summaryModes = [ ] ;
2628 public selectionModes : any [ ] ;
@@ -31,6 +33,13 @@ export class GridGroupBySampleComponent implements OnInit {
3133 constructor ( @Inject ( DisplayDensityToken ) public displayDensityOptions : IDisplayDensityOptions ) { }
3234
3335 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 } ) ) ;
3443 this . columns = [
3544 { dataType : 'string' , field : 'ID' , width : 100 , hidden : true } ,
3645 { dataType : 'string' , field : 'CompanyName' , width : 300 , groupable : true } ,
0 commit comments