kendo ui grid template if else

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>  


Popular posts from this blog

WPF Crystal Report Viewer Using SAP

ASP.NET MVC razor SAP Crystal report