I would like to have a template that always shows what is in odata table except null values, for example, in this example, I tried to make a condition which will check if UnitOfMeasure is null, if it is, it should display only Quantity value, if it is not, Quantity+UnitOfMeasure. Here is what I tried. Thanks
template: "#if(UnitOfMeasure == null) {#= kendo.toString(Quantity, "n2")#} else{#= kendo.toString(Quantity, "n2")# #=UnitOfMeasure#}#"
Aucun commentaire:
Enregistrer un commentaire