title: Custom Client Template Telerik Grid
body: <p>I'm kind of new using Telerik Grid, basically what I'm trying to accomplish here is the following scenario, I have a form that have some fields and via ajax calls another action on my controller to generate the model to a partial view that have the following grid, my problem is that I need to create some actions depending on some business logic, I know I can do that using a column template, the thing is that since im using ajax binding it "loose" my template, looking around on internet I found that you can do that using a js function go generate the links, my question is isn't that kind of messy? im duplicating the same business logic on the server and on the client, there's must be a better way to accomplish this?          </p>
  
  <pre><code>  Html.Telerik().Grid(Model)
        .Name("Grid")
        .DataBinding(binding =&gt; binding.Ajax().OperationMode(GridOperationMode.Client))
        .Columns(column =&gt;
        {
            column.Bound(c =&gt; c.Id).Title("Id").Width(30);
            column.Bound(c =&gt; c.Status);
            column.Bound(c =&gt; c.DateReg);
            column.Template(
                @&lt;text&gt;
                     &lt;div class="ActionsProvGrid"&gt;
                         &lt;a href="@Url.Action("SomeAction", "Controller", new {id = item.id})"&gt;
                             &lt;img src="../../Content/icons/ViewMore.png" alt="ViewMore" /&gt;
                         &lt;/a&gt;
                         @if (@item.Status.Equals("ACT"))
                         {
                             &lt;a href="@Url.Action("SomeOtherAction", "Controller", new {idOportunidad = item.id})"&gt;
                                 &lt;img src="../../Content/icons/invoice.png" alt="invoice"/&gt;
                             &lt;/a&gt;
                         }
  
                     &lt;/div&gt;                                                      
                 &lt;/text&gt;
                ).ClientTemplate("&lt;#= GenearteIcons(data)  #&gt;");
        })
      .Sortable()
  </code></pre>