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

RadComboBox selected text color is black (hard to read)

11 Answers 391 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
PaulR
Top achievements
Rank 1
PaulR asked on 24 Jun 2016, 08:03 PM

Using VisualStudio2013 theme with the dark palette, a RadComboBox shows up in a RadWindow with the selected edit text color as black on a dark background, which is hard to read.

The drop-down part text color is white, so all good there. Just the textbox part.

 

11 Answers, 1 is accepted

Sort by
0
Masha
Telerik team
answered on 27 Jun 2016, 07:07 AM
Hi Paul,

I was not able to reproduce the described problem. I've created a demo project with the described scenario where the selected text inside Editable RadComboBox has the correct foreground. Can you check if I am missing something to reproduce the issue?

Regards,
Masha
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
PaulR
Top achievements
Rank 1
answered on 06 Jul 2016, 12:09 AM
Remove the "IsEditable=True" from your combobox. That's the problem. Most combobox are non-editable, at least in our tool (which is why the default is false, not sure why you thought to set that property to true). I guess I confused you by using the word "edit", but I was trying to indicate the top textbox part as opposed to the bottom drop-down part. Anyway, black text in combobox also shows up in your RadGridView column header filter dropdown window, where those combobox are non-editable, for another example.
0
PaulR
Top achievements
Rank 1
answered on 06 Jul 2016, 12:27 AM
Just for info, since my initial post, I've discovered that you supply all the source XAML for the theme and, I haven't gotten to it yet, but I'm assuming I can go in there and fix up a lot of things I'm finding are "off a bit". Besides colors, for example, there is way too much margin and padding, and "hard-coded" MinHeights that can't easily be changed through styles that need to be cut in like half with the VS 2013 theme. So... just to say, I have a workaround fix now for the radcombobox issue. Thanks.
0
Kalin
Telerik team
answered on 08 Jul 2016, 07:53 AM
Hello Paul,

I removed IsEditable=True from the project, however I cannot observe the described behavior (please check the attached video). Also can you please share a screenshot or video of what you see on your side if different?

I'm looking forward to hearing from you.

Regards,
Kalin
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Jean-Philippe
Top achievements
Rank 1
answered on 28 Oct 2016, 07:24 AM

Dear Kalin,

currently I am having the same issue regarding the dark text on dark background when using the dark theme of VS2013.

I have added a screenshot. The project can be downloaded from https://support.edevis.com/External/DarkThemevs2013.zip

Version of my dlls is 2016.2.613.45

 

Kind Regards

0
PaulR
Top achievements
Rank 1
answered on 28 Oct 2016, 05:43 PM

Hi,

It's easy to make changes in the theme xaml files. Since you are resourcedictionary merging these theme xaml files somewhere in your system, you just need to get the original file of Telerik.Windows.Controls.Input.xaml, make a copy, look for "NonEditableComboBox", and in "PART_DropDownButton", add:

                    Foreground="{telerik1:VisualStudio2013Resource ResourceKey=MarkerBrush}"

And then point your ResourceDictionary Source to that xaml which you include in your project. There's help in the implicit themes documentation. Snoop is also your friend to find these elements in the xaml files.

 

 

0
Kalin
Telerik team
answered on 31 Oct 2016, 08:31 AM
Hi Jean-Philippe,

I tested the sample project, however everything worked as expected on our side. Please check the attached video of my tests. Can you please share what OS version are you using and anything else that can be helpful? Are you able to reproduce it on other machine?

I'm looking forward to hearing from you.

Regards,
Kalin
Telerik by Progress
Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
0
Jean-Philippe
Top achievements
Rank 1
answered on 02 Nov 2016, 06:18 AM

Dear Kalin,

I think I found the problem. We were using the binaries with XAML included. When using the assemblies with no XAML it works as intended.

This was because the assemblies were also used in projects without theming. And without loading a theme the controls have no templates.
Is there a theme that uses the "default" from the XAML-included assemblies as a workaround for using the same assemblies for themed and unthemed? For example if I would like to switch themes at runtime but also wanted to include "no theme".

 

Kind Regards

Jean-Philippe

0
Kalin
Telerik team
answered on 02 Nov 2016, 09:34 AM
Hi Jean-Philippe,

I'm glad you have managed to find the source for issue. The default theme seen when using the XAML binaries is called OfficeBlack, so what I can recommend you would be to use only No XAML binaries and simply switch to OfficeBlack when you want to go with "no theme".

Hope this helps.

Regards,
Kalin
Telerik by Progress
Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
0
Victor
Top achievements
Rank 1
answered on 18 Feb 2020, 12:32 PM
I had the same issue. Managed to get around it by setting these properties on the RadComboBox control: 

IsEditable="True"
IsReadOnly="True"
SelectAllTextEvent="None"
0
Dilyan Traykov
Telerik team
answered on 18 Feb 2020, 04:56 PM

Hi Victor,

Thank you for sharing your solution with our community.

Regards,
Dilyan Traykov
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
PaulR
Top achievements
Rank 1
Answers by
Masha
Telerik team
PaulR
Top achievements
Rank 1
Kalin
Telerik team
Jean-Philippe
Top achievements
Rank 1
Victor
Top achievements
Rank 1
Dilyan Traykov
Telerik team
Share this question
or