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

RadDropDownButton: how to get the same visual behavior as a RadToggleButton

1 Answer 35 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Christophe
Top achievements
Rank 1
Christophe asked on 01 Oct 2015, 10:03 AM

Hi,

I am using a RadToggleButton and a RadDropDownButton in a RadRibbonBar.

The RadDropDownbutton does not have the "IsChecked" property. How do I get the same behavior ​than a RadToggleButton, meaning: If i click on the radDropDownButton i want it to have the same "visual behavior" as a normal RadTogglebutton;

I need it to change the backgroundcolor after a click like the togglebutton and to change it back if you click again.

 

thanks for any help

 

 

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 02 Oct 2015, 06:09 AM
Hello ,

Thank you for writing.

You can access your RadDropDownButtonElement object and modify its back color like that: 
this.radDropDownButtonElement1.ActionButton.ButtonFillElement.GradientStyle = Telerik.WinControls.GradientStyles.Solid;
this.radDropDownButtonElement1.ActionButton.ButtonFillElement.BackColor = Color.LightGreen;
this.radDropDownButtonElement1.ArrowButton.Fill.GradientStyle = Telerik.WinControls.GradientStyles.Solid;
this.radDropDownButtonElement1.ArrowButton.Fill.BackColor = Color.LightGreen;

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
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
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Christophe
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or