This question is locked. New answers and comments are not allowed.
Hi,
I want to check some condition inside the client template. I am displaying certain model properties in ordered list some properties might be null. I want to check if it is null i should not display the template.
| colums.Bound(o => o.Order1) |
| .ClientTemplate( "<ol><li><#= Order1 #></li>" + "<li><#= Order2 #></li>" + "<li><#= Order3 #></li></ol>" ); |
The any of the order might be null. I want to display only the order that has value. Is there any way to check conditions inside the client template or any workarounds for that.
Thanks in advance,
Pradeep.