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

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

3 Answers 107 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Zongtian
Top achievements
Rank 1
Zongtian asked on 28 Nov 2014, 10:18 AM
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.

3 Answers, 1 is accepted

Sort by
0
Masha
Telerik team
answered on 01 Dec 2014, 09:32 AM
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.

 
0
Zongtian
Top achievements
Rank 1
answered on 01 Dec 2014, 04:16 PM
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.
0
Masha
Telerik team
answered on 02 Dec 2014, 09:30 AM
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.

 
Tags
ComboBox
Asked by
Zongtian
Top achievements
Rank 1
Answers by
Masha
Telerik team
Zongtian
Top achievements
Rank 1
Share this question
or