@@ -1132,6 +1132,36 @@ describe('IgxGrid - multi-row-layout', () => {
1132
1132
const groupRowBlocks = fixture . debugElement . query ( By . css ( '.igx-grid__tbody' ) ) . queryAll ( By . css ( '.igx-grid__mrl-block' ) ) ;
1133
1133
expect ( groupRowBlocks [ 0 ] . nativeElement . style . gridTemplateColumns ) . toEqual ( '118px 118px 118px 118px 118px 118px' ) ;
1134
1134
} ) ;
1135
+
1136
+ it ( 'should disregard hideGroupedColumns option and not hide columns when grouping when having column layouts.' , ( ) => {
1137
+ const fixture = TestBed . createComponent ( ColumnLayoutTestComponent ) ;
1138
+ fixture . componentInstance . colGroups = [ {
1139
+ group : 'group1' ,
1140
+ columns : [
1141
+ { field : 'ContactName' , rowStart : 1 , colStart : 1 , colEnd : 4 } ,
1142
+ { field : 'ContactTitle' , rowStart : 1 , colStart : 4 , colEnd : 6 } ,
1143
+ { field : 'Country' , rowStart : 1 , colStart : 6 , colEnd : 7 } ,
1144
+ { field : 'Phone' , rowStart : 2 , colStart : 1 , colEnd : 3 } ,
1145
+ { field : 'City' , rowStart : 2 , colStart : 3 , colEnd : 5 } ,
1146
+ { field : 'Address' , rowStart : 2 , colStart : 5 , colEnd : 7 } ,
1147
+ { field : 'CompanyName' , rowStart : 3 , colStart : 1 , colEnd : 2 } ,
1148
+ { field : 'PostalCode' , rowStart : 3 , colStart : 2 , colEnd : 3 } ,
1149
+ { field : 'Fax' , rowStart : 3 , colStart : 3 , colEnd : 7 } ,
1150
+ ]
1151
+ } ] ;
1152
+ const grid = fixture . componentInstance . grid ;
1153
+ grid . hideGroupedColumns = true ;
1154
+ fixture . detectChanges ( ) ;
1155
+
1156
+ grid . groupBy ( { fieldName : 'ContactTitle' , dir : SortingDirection . Desc , ignoreCase : false ,
1157
+ strategy : DefaultSortingStrategy . instance ( ) } ) ;
1158
+ fixture . detectChanges ( ) ;
1159
+
1160
+ // check column and group are not hidden
1161
+ const col = grid . getColumnByName ( 'ContactTitle' ) ;
1162
+ expect ( col . hidden ) . toBe ( false ) ;
1163
+ expect ( col . parent . hidden ) . toBe ( false ) ;
1164
+ } ) ;
1135
1165
} ) ;
1136
1166
1137
1167
@Component ( {
0 commit comments