@@ -11,6 +11,8 @@ import { IgxStringFilteringOperand, IgxNumberFilteringOperand } from '../../data
11
11
import { configureTestSuite } from '../../test-utils/configure-suite' ;
12
12
import { ScrollsComponent , GridWithPrimaryKeyComponent , SelectionComponent } from '../../test-utils/grid-samples.spec' ;
13
13
import { SampleTestData } from '../../test-utils/sample-test-data.spec' ;
14
+ import { IgxHierarchicalGridMultiLayoutComponent } from '../hierarchical-grid/hierarchical-grid.spec' ;
15
+ import { IgxHierarchicalGridModule } from '../hierarchical-grid/hierarchical-grid.module' ;
14
16
15
17
describe ( 'IgxGrid - Row Selection' , ( ) => {
16
18
configureTestSuite ( ) ;
@@ -25,11 +27,13 @@ describe('IgxGrid - Row Selection', () => {
25
27
ScrollsComponent ,
26
28
GridSummaryComponent ,
27
29
GridCancelableComponent ,
28
- GridFeaturesComponent
30
+ GridFeaturesComponent ,
31
+ HierarchicalGridRowSelectableIslandComponent
29
32
] ,
30
33
imports : [
31
34
NoopAnimationsModule ,
32
- IgxGridModule
35
+ IgxGridModule ,
36
+ IgxHierarchicalGridModule
33
37
]
34
38
} )
35
39
. compileComponents ( ) ;
@@ -962,6 +966,13 @@ describe('IgxGrid - Row Selection', () => {
962
966
expect ( rowCheck ) . toBeDefined ( ) ;
963
967
} ) ) ;
964
968
969
+ it ( 'Set rowSelectable on HGrid row island' , fakeAsync ( ( ) => {
970
+ expect ( ( ) => {
971
+ const fix = TestBed . createComponent ( HierarchicalGridRowSelectableIslandComponent ) ;
972
+ fix . detectChanges ( ) ;
973
+ } ) . not . toThrow ( ) ;
974
+ } ) ) ;
975
+
965
976
} ) ;
966
977
967
978
@Component ( {
@@ -1125,3 +1136,21 @@ export class GridFeaturesComponent {
1125
1136
column . resizable = true ;
1126
1137
}
1127
1138
}
1139
+
1140
+ @Component ( {
1141
+ template : `
1142
+ <igx-hierarchical-grid #grid1 [data]="data" [autoGenerate]="false" [height]="'400px'" [width]="'500px'" #hierarchicalGrid>
1143
+ <igx-column field="ID"></igx-column>
1144
+ <igx-column field="ProductName"></igx-column>
1145
+ <igx-row-island [key]="'childData'" [autoGenerate]="false" [height]="height" #rowIsland1 [rowSelectable]="true">
1146
+ <igx-column field="ID"></igx-column>
1147
+ <igx-column field="ProductName"></igx-column>
1148
+ </igx-row-island>
1149
+ <igx-row-island [key]="'childData2'" [autoGenerate]="false" [height]="height" #rowIsland2 [rowSelectable]="true">
1150
+ <igx-column field="Col1"></igx-column>
1151
+ <igx-column field="Col2"></igx-column>
1152
+ <igx-column field="Col3"></igx-column>
1153
+ </igx-row-island>
1154
+ </igx-hierarchical-grid>`
1155
+ } )
1156
+ export class HierarchicalGridRowSelectableIslandComponent extends IgxHierarchicalGridMultiLayoutComponent { }
0 commit comments