title: Telerik ASP.NET MVC 3 Grid - setting row background
body: <p>I'm using Telerik Grid. I need to set background color for the entire row based on some property in view model. I've tried to do it as below by setting a background in IF statement for each column but backgound applies only on element not all cell (td). Also it seems it's a very "dirty" way to accomplish this task.</p>
  
  <pre><code>@(Html.Telerik().Grid(Model.SomeItems).Name("Grid")
                 .Columns(columns =&gt;
                 {
                     columns.Template(
                         @&lt;text&gt;
                            @if (Model.IsOfSpecialColor)
                             {
                               &lt;div class="gridRowBackground"&gt;
                                 @Html.ActionLink(...)
                               &lt;/div&gt;
                             }
                             else
                             {                                        
                                @Html.ActionLink(...)
                             }
                        &lt;/text&gt;).Title("Blabla");
                  });
  </code></pre>