This question is locked. New answers and comments are not allowed.
Hattan Shobokshi
Top achievements
Rank 1
Hattan Shobokshi
asked on 12 Apr 2013, 08:28 PM
Hi,
Is there a way to change the background color that appears when you hover over a selection the AutCompleteBox? Currently it's defaulting to blue, but I'm wondering if there is a way to override that color and customize it for my particular app.
Thanks!
Hattan
Is there a way to change the background color that appears when you hover over a selection the AutCompleteBox? Currently it's defaulting to blue, but I'm wondering if there is a way to override that color and customize it for my particular app.
Thanks!
Hattan
4 Answers, 1 is accepted
0
Hello Hattan,
Thank you for your interest.
Yes, there are two ways to change the background color of an item on pointer over. The first approach is to redefine the TelerikAutoCompleteBoxSelectorSelectedItemBackgroundBrush brush in your application resources like this:
This approach is global and it will change this color in all the RadAutoCompleteBox instances in your application.
The second option is to edit the template of the inputAutoComplete:SuggestionItem( it is in the Telerik.UI.Xaml.Controls.Input.AutoCompleteBox namespace) and change the background color in the PointerOver and SelectedUnfocused visual states.
I hope this information helps. Let me know if this helps.
Ivaylo Gergov
the Telerik team
Thank you for your interest.
Yes, there are two ways to change the background color of an item on pointer over. The first approach is to redefine the TelerikAutoCompleteBoxSelectorSelectedItemBackgroundBrush brush in your application resources like this:
<SolidColorBrush x:Key="TelerikAutoCompleteBoxSelectorSelectedItemBackgroundBrush" Color="Green"/>This approach is global and it will change this color in all the RadAutoCompleteBox instances in your application.
The second option is to edit the template of the inputAutoComplete:SuggestionItem( it is in the Telerik.UI.Xaml.Controls.Input.AutoCompleteBox namespace) and change the background color in the PointerOver and SelectedUnfocused visual states.
I hope this information helps. Let me know if this helps.
All the best,
Ivaylo Gergov
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Hattan Shobokshi
Top achievements
Rank 1
answered on 16 Apr 2013, 04:56 PM
Hi Ivaylo,
Thank you for your help. That is exactly what I was looking for, I really appreciate it.
Hattan
Thank you for your help. That is exactly what I was looking for, I really appreciate it.
Hattan
0
Karthik Reddy
Top achievements
Rank 1
answered on 16 Oct 2015, 02:45 PM
Can you please help with an example for this.
0
Hello,
I have attached a sample project for demonstration.
Please, let me know should you need further assistance.
Regards,
Ivaylo Gergov
Telerik
I have attached a sample project for demonstration.
Please, let me know should you need further assistance.
Regards,
Ivaylo Gergov
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items