Hi @plaguebreath,
You can see the back cell values of the row because the --rz-info-lighter
variable contains a semi-transparent color value depending on the theme in use. For example in the default theme the color value is rgba(44, 200, 200, 0.2)
- that is 0.2 on the alpha channel.
That said, you can apply this semi-transparent color using background-image instead of overriding the background-color:
args.Attributes.Add("style", $"background-image: linear-gradient(0deg, var(--rz-info-lighter), var(--rz-info-lighter))
;");
This way you can keep the alternating rows appearance, because you don't actually change the cell's background color:
If you insist on keeping the background color consistent without the alternating look, just apply a white background-color in addition to the background-image:
args.Attributes.Add("style", $"background-color: white; background-image: linear-gradient(0deg, var(--rz-info-lighter), var(--rz-info-lighter))
;");
or
args.Attributes.Add("style", $"background-color: var(--rz-grid-stripe-odd-background-color); background-image: linear-gradient(0deg, var(--rz-info-lighter), var(--rz-info-lighter))
;");
Another option is to override the --rz-info-lighter color value, but I wouldn't recommend doing it globally as the semi-transparent color plays really well with other components in use e.g. RadzenBadge or RadzenAlert with a semi-transparent background.