Remove blue highlighting of text in RadComboBox

2 posts, 1 answers
  1. Michael
    Michael avatar
    22 posts
    Member since:
    Nov 2014

    Posted 31 Jan Link to this post

    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.

  2. Answer
    Vicky
    Admin
    Vicky avatar
    6 posts

    Posted 01 Feb Link to this post

    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.
Back to Top