GroupRowRender: changing background color

Hello,

What is the trick to change the background on the group headers?

I've tried the following with out luck (using latest version of the NuGet):
public void OnGroupRowRender(GroupRowRenderEventArgs args) => args.Attributes.Add("style", $"background-color: var(--rz-success-lighter);");

1 Like

In addition the background color comes from the td element and the style you set is applied to its parent tr element. Another possible solution is to add this CSS rule

.rz-group-row td {
   backround-color: inherit !important;
}

Then setting the background color of the tr should apply to the td as well.

1 Like