File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
projects/igniteui-angular/src/lib/grids/hierarchical-grid
src/app/hierarchical-grid Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -407,11 +407,12 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti
407
407
ngAfterContentInit ( ) {
408
408
this . updateColumnList ( false ) ;
409
409
this . childLayoutKeys = this . parent ?
410
- this . parentIsland . children . map ( ( item ) => item . key ) :
411
- this . childLayoutKeys = this . childLayoutList . map ( ( item ) => item . key ) ;
410
+ this . parentIsland . children . map ( ( item ) => item . key ) :
411
+ this . childLayoutKeys = this . childLayoutList . map ( ( item ) => item . key ) ;
412
412
this . childLayoutList . notifyOnChanges ( ) ;
413
- this . childLayoutList . changes . pipe ( takeUntil ( this . destroy$ ) )
414
- . subscribe ( ( ) => this . onRowIslandChange ( ) ) ;
413
+ this . childLayoutList . changes . pipe ( takeUntil ( this . destroy$ ) ) . subscribe ( ( ) =>
414
+ this . onRowIslandChange ( )
415
+ ) ;
415
416
super . ngAfterContentInit ( ) ;
416
417
}
417
418
Original file line number Diff line number Diff line change 1
- import { Component , ViewChild } from '@angular/core' ;
1
+ import { Component , ViewChild , ChangeDetectorRef } from '@angular/core' ;
2
2
import {
3
3
IgxRowIslandComponent ,
4
4
IgxHierarchicalGridComponent ,
@@ -30,7 +30,7 @@ export class HierarchicalGridSampleComponent {
30
30
@ViewChild ( 'hGrid' , { static : true } )
31
31
hGrid : IgxHierarchicalGridComponent ;
32
32
33
- constructor ( ) {
33
+ constructor ( private cdr : ChangeDetectorRef ) {
34
34
// this.localData.push({ ID: -1, Name: ''});
35
35
// for (let i = 0; i < 10000; i++) {
36
36
// const prods = [];
@@ -54,6 +54,10 @@ export class HierarchicalGridSampleComponent {
54
54
this . localData [ 2 ] . childData [ 1 ] . hasChild = false ;
55
55
}
56
56
57
+ ngAfterViewInit ( ) {
58
+ this . cdr . detectChanges ( ) ;
59
+ }
60
+
57
61
generateData ( count : number , level : number ) {
58
62
const prods = [ ] ;
59
63
const currLevel = level ;
You can’t perform that action at this time.
0 commit comments