title: Kendo Grid ClientTemplate conditional column
body: <p>I am working with ASP.NET MVC 4 with Kendo UI(kendo grid).Below is sample code of Kendo Grid -</p>
  
  <pre><code>@(Html.Kendo().Grid(Model.Users).Name("Grid").Columns(columns =&gt;
  {
     columns.Bound(p =&gt; p.FirstName);
     columns.Bound(p =&gt; p.LastName);
     columns.Bound(p =&gt; p.UserName);
     columns.Bound(p =&gt; p.Email);   
     columns.Bound(o =&gt; o.IsActive).ClientTemplate(links).Title("Action");      
  
  })
  </code></pre>
  
  <blockquote>
    <blockquote>
      <p>In the above code my IsActive column have some links for Actions like Edit,Update,Delete.And i am adding those links into Kendo grid by links variable.And I want to  use links variable on the basis of conditions.Means i want conditional ClientTemplate here.</p>
    </blockquote>
  </blockquote>
  
  <p>So anyone suggest how can make a conditional ClientTemplate in kendoGrid ?</p>
  
  <p>2) Also i want to add condition on the basis on the bool field value of my model(Model.Users).</p>
  
  <p>So i want to know how we can get that field from Model.Users model in kendo grid for each row.Like -</p>
  
  <pre><code>.ClientTemplate(if(IsAdmin &amp;&amp; ViewBag.IsActive){.....} else{....})
  </code></pre>