lundi 3 juin 2019

How to write IF condition in kendo grid?

I would like to use a if condition in kendo grid column. But it doesn't work. I would like to put images depends on condition. Is there syntax error?

<kendo-grid-column field ="Scanned_STS" title="Status" width="20">
  <ng-template kendoGridCellTemplate let-dataItem> "# if(Scanned_STS == 1) { #  #= "<img src=''>" # # } else if (Scanned_STS == 0) { # #= "<img src=''>" # # }"</ng-template>
</kendo-grid-column>

Aucun commentaire:

Enregistrer un commentaire