Greetings,
I am trying to set the GridView style.
Need to set the Grid view Row and GridViewSelectColumn disabled as per the binding value. And at the same time need red background color for disabled row.
I am trying to achieve by applying style but it is now showing the expected result.
<telerik:RadGridView.RowStyle>
<Style TargetType="telerik:GridViewRow">
<Setter Property="IsEnabled" Value="{Binding IsCheckboxEnabled }"></Setter>
<Setter Property="Background" Value="{Binding IsCheckboxEnabled, Converter={StaticResource BoolConverter}}"></Setter>
</Style>
</telerik:RadGridView.RowStyle>
where IsCheckboxEnabled is conditional value true/false with the help of which i want row to be disabled. And Background should be red.
Converter={StaticResource BoolConverter} is used to return new SolidColorBrush(Colors.Red);
But, it is not working as expected. Showing disabled rows only for alternate rows in the grid even if IsCheckboxEnabled is property assigned as false.
Not getting proper way to disable check box and disable row with red background.
Could you please advise here.
Thank you.