This question is locked. New answers and comments are not allowed.
Hello,
I tried to set the background for the selected row/cell in various ways, but none seems to be working.
One was to define
<SolidColorBrush x:Key="PanelTitleBackgroundBrush" Color="#36CDF1"/>
in my StandardStyles.xaml, as described in the "Telerik Named Brushes" help topic.
Another was to have
<telerikGrid:RadDataGrid.Resources>
<Style TargetType="telerikGridPrimitives:SelectionRegionBackgroundControl">
<Setter Property="Background" Value="{StaticResource TelerikGridSelectedBackgroundBrush}"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
</telerikGrid:RadDataGrid.Resources>
added to the RadDataGrid definition, as per the "Implicit Styling" article.
What I'm trying to achieve is the simple ability to apply a background color to the selected cell/row that would differentiate it from the rest of the data in the grid.
I believe the best way to achieve this could have been just having a SelectedRowBackground property exposed by the grid itself, similarly to RowBackground and AlternateRowBackground.
Lacking that, please advise on the alternatives.
I tried to set the background for the selected row/cell in various ways, but none seems to be working.
One was to define
<SolidColorBrush x:Key="PanelTitleBackgroundBrush" Color="#36CDF1"/>
in my StandardStyles.xaml, as described in the "Telerik Named Brushes" help topic.
Another was to have
<telerikGrid:RadDataGrid.Resources>
<Style TargetType="telerikGridPrimitives:SelectionRegionBackgroundControl">
<Setter Property="Background" Value="{StaticResource TelerikGridSelectedBackgroundBrush}"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
</telerikGrid:RadDataGrid.Resources>
added to the RadDataGrid definition, as per the "Implicit Styling" article.
What I'm trying to achieve is the simple ability to apply a background color to the selected cell/row that would differentiate it from the rest of the data in the grid.
I believe the best way to achieve this could have been just having a SelectedRowBackground property exposed by the grid itself, similarly to RowBackground and AlternateRowBackground.
Lacking that, please advise on the alternatives.