I have a grid where the last few rows show different types of totals with different color highlighting. In the OnRowRenderHandler, I assign the background-color via CSS like args.Class = "bc_orange". This works fine unless the row also has the k-alt class in which case it overrides the background color.
Is there a way in the OnRowRender to remove the k-alt class? Normally in JQuery I would use the .removeClass function.
public void OnRowRenderHandler(GridRowRenderEventArgs args)
{
Models.Results item = args.Item as Models.Results;
switch (item.row)
{
case 1:
args.Class = "bc_orange disable-hover";
break;
case 2:
args.Class = "bc_lightgreen disable-hover";
break;
case 3:
args.Class = "bc_lightblue disable-hover";
break;
}
}