Use if else condition in kendo UI template
<script type="text/x-kendo-template" id="template">
<div id="details-container">
<dt> Name:</dt> #= Name #
<br>
<dt>Selected Device: </dt> iOS:-# if (PushToiOS == true) { #Yes# } else { #No# } #,
Android:-# if (PushToAndroid == true) { #Yes# } else { #No# } #,
WP:-# if (PushToWP == true) { #Yes# } else { #No# } #
<br>
<dt>Expire Date:</dt> #= kendo.toString(ExpiredDate, "MM/dd/yyyy") #
<br>
</div>
</script>
Comments
Post a Comment