Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Conditional Statement Client Template

$
0
0

Hello Kieran,
 When using the ClientTemplate with conditionals it should follow this structure: # if(...){# ... #}#


Your code should look like this: 

col.Bound(c => c.Active).ClientTemplate("#if(Active){#<buttonclass='btn btn-success'>Active</button>#}#");

Hope this helps.

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>