The selected item's background is not shown!!!

4 posts, 0 answers
  1. Zongtian
    Zongtian avatar
    3 posts
    Member since:
    Nov 2014

    Posted 28 Nov 2014 Link to this post

    Hello,

    i am working the radcombobox, but i found the background of the selected  item is not shown, I do not know why, and i did not find its visual state whick controls it.

    when i click the combobox, and the items are shown, but i can't see the background of the selected item.
  2. Masha
    Admin
    Masha avatar
    355 posts

    Posted 01 Dec 2014 Link to this post

    Hi Zongtian,

    To customize the selection color inside of RadComboBoxItem, you will have to edit the style of the RadComboBoxItemStyle.   Find the following
    <Border x:Name="HighlightVisual" Visibility="Collapsed" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" BorderThickness="1" BorderBrush="{StaticResource ControlOuterBorder_Highlighted}" Background="{StaticResource ControlBackground_Highlighted}">

    and change the Background property to the color of your choice. Please note that the MouseOver state uses the same Border as the selected one.

    Hope this helps.


    Regards,
    Masha
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
  4. Zongtian
    Zongtian avatar
    3 posts
    Member since:
    Nov 2014

    Posted 01 Dec 2014 in reply to Masha Link to this post

    thanks for your reply, and i think i did not explain the problem clear.

    my question is that it can not show the background of the element selected when we do the popup of the items of combobox.

    for exemple, when i click the button "expander", and it should show the items of combobox, and at the same time we can also see the item seleted which has the different color. But i can not see it.

    Any ideas.
  5. Masha
    Admin
    Masha avatar
    355 posts

    Posted 02 Dec 2014 Link to this post

    Hi Zongtian,

    Please excuse me for the misunderstanding. It is hard to tell what is causing the issue only from the screenshot. I've attached a sample project where the RadComboBox shows the selected item when the pop up is opened. Could you check if this is the desired behavior?

    If the issue still persists, please send us all RadComboBox XAML modifications which are made. This will be really helpful for tracking down the source of the issue.

    Regards,
    Masha
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top