Posted 14 September 2017, 12:02 pm EST
Please give me an example of how to use formatItem with Wijmo Flexgrid in Ionic. Currently I use <template> to set conditonal format to cell but it is very slow because I have a large json file. Below is what I am using:
<wj-flex-grid #flex
[itemsSource]=“dataCollection”
[autoSizeMode]=“1”
[headersVisibility]=“1”
[isReadOnly]=“true”>
<wj-flex-grid-filter></wj-flex-grid-filter> <wj-flex-grid-column *ngFor="let col of columns" [header]="col" [binding]="col"> <template wjFlexGridCellTemplate [cellType]="'Cell'" let-cell="cell" style="padding:0 !important;" > <div>{{setCellFormat(cell,flex,cell.item.Level)}}</div> </template> </wj-flex-grid-column> </wj-flex-grid>
Thank you very much.