Posted 11 April 2020, 6:04 am EST
Hi Team,
I am using wijmo with angular 7. I have a wj-grid which has between 2000-3000 records and around 6-7 columns. I am using using ng-template to change the font and color of the text inside the cell. I am also using pagination with(wj-collection-view-pager) and [autoRowHeights]=“true” to resize rows when page changes. Due to me using wj-template, the rendering is really slow specially in IE. It is a little better after I build the project for prod but still it lags a bit in IE. is there any way I can change the color and font of the data displayed without using ng-template?
Example of one of the columns below. I have similar 5-6 more.
<wj-flex-grid-column
[width]="175"
header="Sub-Type"
binding="subtype" [isReadOnly]="true" [wordWrap]="true">
<ng-template wjFlexGridCellTemplate [cellType]="'ColumnHeader'">
<div class="cell-style mrg5">
<div [wjTooltip]="'Sub-Type'" class="cell-style">
<label class="hoverTxt">Sub-Type</label>
</div>
</div>
</ng-template>
<ng-template wjFlexGridCellTemplate [cellType]="'Cell'" let-cell="cell">
<span style="font-weight: 500;"><b>{{cell.item.subtype}}</b></span>
</ng-template>
</wj-flex-grid-column>