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.
@(Html.Telerik().Grid(Model.SomeItems).Name("Grid")
.Columns(columns =>
{
columns.Template(
@<text>
@if (Model.IsOfSpecialColor)
{
<div class="gridRowBackground">
@Html.ActionLink(...)
</div>
}
else
{
@Html.ActionLink(...)
}
</text>).Title("Blabla");
});