0I have the following .xaml and it correctly colorizes the foreground on specific items when a certain condition is met (Impinged = True).
However, when I select that item, it doesn't maintain the color. I attempted the following suggestion on this thread but it didn't work. Either because I am working with Telerik or something else.
ComboBox
change selected item background color by trigger condition
My .xaml is the following
.....
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<telerik:RadComboBox
x:Name="cbLowBand"
DisplayMemberPath="Name"
ItemsSource="{Binding DataContext.LowBandItems, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadGridView}}}"
SelectedItem="{Binding SelectedLowItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Style="{StaticResource MyCustomStyle}"
<telerik:RadComboBox.ItemContainerStyle>
<Style TargetType="telerik:RadComboBoxItem">
<Style.DataTriggers>
<DataTrigger Binding="{Binding IsImpinged}", Value="True">
<Setter Property="Foreground" Value="Red" />
<Setter Property=ToolTip", Value="{Binding ImpingedTooltip}" />
</DataTrigger>
</Style.DataTriggers>
</Style>
</telerik:RadComboBox.ItemContainerStyle>
<!--other non related stuff>
<telerik:EventToCommandBehavior.EventBindings>
<telerik:EventBinding
Command="{Binding DataContext.LowBandItem, RelativeSource=...........
Hi JohnGrove,
We are not familiar with telerik:RadComboBox. I suggest you can go to the
telerik support center for getting suitable help.
Thank you for your understanding
Best regards
Yong Lu
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.