File tree 1 file changed +13
-4
lines changed
projects/igniteui-angular/src/lib/grids
1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -2987,7 +2987,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
2987
2987
} ;
2988
2988
2989
2989
private transactionChange$ = new Subject < void > ( ) ;
2990
-
2990
+ private _rendered = false ;
2991
2991
private readonly DRAG_SCROLL_DELTA = 10 ;
2992
2992
2993
2993
/**
@@ -3672,6 +3672,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
3672
3672
this . paginator . totalRecords = this . totalRecords ;
3673
3673
this . paginator . overlaySettings = { outlet : this . outlet } ;
3674
3674
}
3675
+ this . _rendered = true ;
3675
3676
} ) ;
3676
3677
Promise . resolve ( ) . then ( ( ) => this . rendered . next ( true ) ) ;
3677
3678
}
@@ -4026,16 +4027,24 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
4026
4027
return this . featureColumnsWidth ( ) ;
4027
4028
}
4028
4029
4030
+ /**
4031
+ * @hidden
4032
+ * @internal
4033
+ */
4034
+ public get columns ( ) : IgxColumnComponent [ ] {
4035
+ return this . _columns ;
4036
+ }
4037
+
4029
4038
/**
4030
4039
* Gets an array of `IgxColumnComponent`s.
4031
4040
*
4032
4041
* @example
4033
4042
* ```typescript
4034
- * const colums = this.grid.columns .
4043
+ * const colums = this.grid.columnsCollection .
4035
4044
* ```
4036
4045
*/
4037
- public get columns ( ) : IgxColumnComponent [ ] {
4038
- return this . _columns ;
4046
+ public get columnsCollection ( ) : IgxColumnComponent [ ] {
4047
+ return this . _rendered ? this . _columns : [ ] ;
4039
4048
}
4040
4049
4041
4050
/**
You can’t perform that action at this time.
0 commit comments