This is a migrated thread and some comments may be shown as answers.

Angular 9 grid, columns within ng-container

1 Answer 942 Views
Grid
This is a migrated thread and some comments may be shown as answers.
esp
Top achievements
Rank 1
Veteran
esp asked on 18 Feb 2020, 08:02 PM

Using ngFor with an ng-container to iterate over column definitions seems to no longer work since moving to Angular 9. Is this a bug or is there any reason why the below grid would not display as expected?

<kendo-grid [data]="data">
  <ng-container *ngFor="let column of columns">
    <kendo-grid-column *ngIf="column.visible" [field]="column.field" [title]="column.title">
    </kendo-grid-column>
  </ng-container>
</kendo-grid>

1 Answer, 1 is accepted

Sort by
0
esp
Top achievements
Rank 1
Veteran
answered on 19 Feb 2020, 10:43 PM
Nevermind, seems it was an issue on Angular's side as reported here: https://github.com/angular/angular/issues/34768 and is working per the latest update.
Tags
Grid
Asked by
esp
Top achievements
Rank 1
Veteran
Answers by
esp
Top achievements
Rank 1
Veteran
Share this question
or