@@ -812,6 +812,14 @@ describe('IgxGrid - multi-column headers', () => {
812812 testColumnPinning ( ci . genInfoColGroup , true ) ;
813813 } ) ) ;
814814
815+ it ( 'Should initially pin the whole group when one column of the group is pinned' , fakeAsync ( ( ) => {
816+ const fixture = TestBed . createComponent ( ThreeGroupsThreeColumnsGridComponent ) ;
817+ fixture . componentInstance . cnPinned = true ;
818+ fixture . detectChanges ( ) ;
819+ const contactTitle = fixture . componentInstance . grid . getColumnByName ( 'ContactTitle' ) ;
820+ expect ( contactTitle . pinned ) . toBeTruthy ( ) ;
821+ } ) ) ;
822+
815823 it ( 'Should not allow moving group to another level via API.' , ( ) => {
816824 const fixture = TestBed . createComponent ( ColumnGroupTestComponent ) ;
817825 fixture . detectChanges ( ) ;
@@ -1645,7 +1653,7 @@ export class ColumnGroupTwoGroupsTestComponent {
16451653 template : `
16461654 <igx-grid #grid [data]="data" height="600px" width="1000px">
16471655 <igx-column-group #genInfoColGroup header="General Information">
1648- <igx-column #companyNameCol field="CompanyName"></igx-column>
1656+ <igx-column #companyNameCol field="CompanyName" [pinned]="cnPinned" ></igx-column>
16491657 <igx-column #contactNameCol field="ContactName"></igx-column>
16501658 <igx-column #contactTitleCol field="ContactTitle"></igx-column>
16511659 </igx-column-group>
@@ -1694,6 +1702,7 @@ export class ThreeGroupsThreeColumnsGridComponent {
16941702 postalCodeCol : IgxColumnComponent ;
16951703
16961704 data = SampleTestData . contactInfoDataFull ( ) ;
1705+ public cnPinned = false ;
16971706}
16981707
16991708@Component ( {
0 commit comments