title: Telerik MVC grid loses rendered html on sort
body: <p>I have a telerik grid in my ASP MVC project. Most of the columns are bound to data from DB, but one columns needs to contain image icons that are dependent on a column record's value. To do this I use a column template that contains an IF ELSE. The IF ELSE writes html with a specific image reference (css class with background image) depending on a column record's value.  This work great on load.  But as soon as I perform a sort on the grid, all that html that was rendered in the templated column is lost.  Code below. Is there a way to do this or do I have to rethink how I do a sort?</p>
  
  <pre><code>&lt;div id="gridArea" &gt;
  
      @{Html.Telerik().Grid(@Model)
          .Name("Grid")
          .Columns(columns =&gt;
               { columns.Template(
                   @&lt;text&gt;
                       @if (@item.Q1 == "On Plan")
                       {&lt;div class="scorecardSymbol onPlanSymbol"&gt;&lt;/div&gt;}
                       else if (@item.Q1 == "Off Plan")
                       {&lt;div class="scorecardSymbol offPlanSymbol"&gt;&lt;/div&gt;}
                       else if (@item.Q1 == "Serious Constraints")
                       {&lt;div class="scorecardSymbol seriousConstraintsSymbol"&gt;&lt;/div&gt;}
                       else if (@item.Q1 == "Not Started")
                       {&lt;div class="scorecardSymbol notStartedSymbol"&gt;&lt;/div&gt;}
                       else
                       {&lt;span&gt;NA&lt;/span&gt; }
                   &lt;/text&gt;)
  
                  .HeaderTemplate(
                       @&lt;text&gt; 
                          &lt;span style="color:red"&gt;Quarter Status&lt;/span&gt;
                       &lt;/text&gt;)
                  .Width(175);
               columns.Bound("Off_Plan").Width(100).Title("Off Plan");
             })
         .DataBinding(dataBinding =&gt;
           {
              dataBinding.Server().Select("Index", "Home", new { ajax = true });
              dataBinding.Ajax().Select("_FirstLook", "Home").Enabled(true);
            })
         .Render();
      }
  &lt;/div&gt;
  </code></pre>