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

Theme Colors in SplitButton Dropdown

2 Answers 77 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Jeremy Murtishaw
Top achievements
Rank 1
Jeremy Murtishaw asked on 28 Nov 2009, 06:01 PM
Hello,

I've recently upgraded to Q3 2009. The upgrade has seemingly broken my dropdown colors for my Split Buttons. I previously created a custom theme based on the Desert theme, however, the dropdown colors were not changed from the Desert default. These values were [in the theme editor]:

RootRadElement -> RadDropDownMenuElement->FillPrimitive
BackColor/2/3/4: 243, 243, 229
RootRadElement -> RadDropDownMenuElement->RadElement->FillPrimitive
BackColor/2/3/4: 222, 222, 204

When I open the theme editor now for my split buttons, these colors still appear as desired. However, when the Split Buttons are clicked at runtime, the dropdown menu items instead have two shades of white/gray as fill colors instead of the two shades of the sandy color specified above. Also, normally when I run into problems like this with Telerik controls, I typically hard code changes to the elements at runtime as a workaround. However, in this case, I am unable to reach these components of the element tree. When working with a RadSplitButton, the only available element is the DropDownButtonElement which does not have children leading to a DropDownMENUElement.

Any help would be appreciated.
Jeremy

2 Answers, 1 is accepted

Sort by
0
Jeremy Murtishaw
Top achievements
Rank 1
answered on 28 Nov 2009, 07:08 PM
Attaching Screenshots.
0
Nikolay
Telerik team
answered on 01 Dec 2009, 03:46 PM
Hello Jeremy Murtishaw,

In Q3 2009 we changed the ThemeClassName of the RadSplitButton's dropdown. In order to continue using your custom theme, please replace this line:
<RadStylesheetRelation ControlType="Telerik.WinControls.UI.RadSplitButtonMenu" ElementType="Telerik.WinControls.RootRadElement" />

wtih this one:
<RadStylesheetRelation ControlType="Telerik.WinControls.UI.RadDropDownButtonMenu" ElementType="Telerik.WinControls.RootRadElement" />

I hope this helps. If you have additional questions, feel free to contact me.

Greetings,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Jeremy Murtishaw
Top achievements
Rank 1
Answers by
Jeremy Murtishaw
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or