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

2 posts, 0 answers
  1. Christophe
    Christophe avatar
    1 posts
    Member since:
    Aug 2014

    Posted 01 Oct 2015 Link to this post


    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



  2. Hristo Merdjanov
    Hristo Merdjanov avatar
    664 posts

    Posted 02 Oct 2015 Link to this post

    Hello Chirstophe,

    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.

    Hristo Merdjanov
    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
  3. DevCraft R3 2016 release webinar banner
Back to Top