If I set the color of a row for the grid it works great until the user pages or sorts the grid then I loose the color setting for the row. I have tried using the the CellAction and it also looses the HtmlAttributes. Is it because it is an Ajax bound grid? Is there a work around?
.Grid(Model)code for .columns goes here........
.Name("DetailGrid")
.RowAction(row =>
{
if (row.DataItem.Status == "X")
{
row.HtmlAttributes["style"] = "background:#FFCCCC;";
}
})
.DataBinding(x => x.Ajax().Select("AjaxDetails", "Policy", new { OID = ViewData["OID"] }))