Posted 12 November 2018, 9:00 am EST
I am using a flex grid with tree format. It will not render the grid until a resize is done. Additionally, it will ‘remove’ the grid if the html element containing the grid is hidden; then it won’t render the grid again until resize.
the grid
<div style="height:800px;width:1000px;">
<wj-flex-grid class="custom-flex-grid"
[itemsSource]="hierarchyData"
[childItemsPath]="'items'"
[selectionMode]="'ListBox'"
[headersVisibility]="'Column'">
<wj-flex-grid-column [binding]="'name'" [width]="'*'"></wj-flex-grid-column>
<wj-flex-grid-column [binding]="'length'" [width]="80" [align]="'center'"></wj-flex-grid-column>
</wj-flex-grid>
</div>
The data for grid
this.repository.getDataByVals("api/EntityManagement/Hierarchy", searchVals).subscribe(response => {
this.hierarchyData = new wjcCore.CollectionView(response);
});
Note:
I cannot reproduce this is jsfiddle or stackblitz