Environment
- Telerik UI (RadGridView)
- Theme: Fluent / FluentDark
- Multiple row selection enabled
Issue
When multiple rows are selected in a RadGridView and one of the selected rows is subsequently deselected, the text in some cells of the deselected row appears to disappear.
The cell values still exist and are rendered correctly after another repaint occurs, such as when selecting a different row.
Steps to Reproduce
- Apply the Fluent theme.
- Select multiple rows.
- Deselect one of the selected rows.
- Observe that some cells in the deselected row appear blank.
- Select another row and notice that the text is displayed again.
Investigation Results
While the row is selected, the appearance is correct:
- Background: Selected color
- Foreground: White
However, after deselection:
- The background is updated correctly to the unselected color (White).
- The foreground appears to remain White, as it was in the selected state.
As a result, the cell seems to have:
ForeColor= White
making the text effectively invisible.
Behavior with FluentDark Theme
The same steps do not produce a visible issue when using the FluentDark theme.
However, based on our investigation:
- BackColor= Black
- ForeColor = White
It appears that the foreground color may also remain in the selected-state color after deselection in FluentDark.
When the theme is subsequently switched from FluentDark to Fluent, the issue becomes visible because the colors effectively become:
ForeColor = White
and the text can no longer be seen.
Expected Behavior
When a row is deselected, the cell foreground color should be properly restored to the default color for the unselected state.
Question
Is it necessary to explicitly reset the ForeColor in events such as CellFormatting or RowFormatting, or is this behavior considered a bug in the Fluent/FluentDark themes?
Attachments
- Three screenshots demonstrating the issue with the Fluent theme.(1-3)
- Three screenshots demonstrating the issue when switching from FluentDark to Fluent.(4-6)
Based on the screenshots, the background color appears to be updated correctly, while the foreground color of only some cells remains in the selected-state color until a repaint occurs, after which the display returns to normal.