This is a migrated thread and some comments may be shown as answers.

Remove blue highlighting of text in RadComboBox

1 Answer 510 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 31 Jan 2019, 09:43 PM

Hello,

I'm using a styling template to edit the appearance of a combobox.  I want to remove the blue highlighting that occurs when an item is selected.  What property do I need to look for to change that?  Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Vicky
Telerik team
answered on 01 Feb 2019, 09:26 AM
Hi Michael,

In order to achieve the desired by you appearance, you can use the TextBoxStyle property of the RadComboBox control, e.g.:
<StackPanel>
    <StackPanel.Resources>
        <Style x:Key="tbStyle" TargetType="TextBox">
            <Setter Property="SelectionBrush" Value="Transparent" />
        </Style>
    </StackPanel.Resources>
    <telerik:RadComboBox Margin="30" Width="200" HorizontalAlignment="Left" IsEditable="True" TextBoxStyle="{StaticResource tbStyle}">
        <telerik:RadComboBoxItem Content="Item"/>
        <telerik:RadComboBoxItem Content="Item"/>
        <telerik:RadComboBoxItem Content="Item"/>
        <telerik:RadComboBoxItem Content="Item"/>
    </telerik:RadComboBox>
</StackPanel>

Please try it out and let me know if it helped you solve your problem.

Regards,
Vicky
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ComboBox
Asked by
Michael
Top achievements
Rank 1
Answers by
Vicky
Telerik team
Share this question
or