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

RadSplitButton - Programatically Change Border Color

1 Answer 116 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 28 Sep 2015, 05:45 AM

How do I change the border color on a radSplitButton? I'm using

   btnUser.DropDownButtonElement.ButtonSeparator.BorderColor = Color.FromArgb(255, 190, 106)
   btnUser.DropDownButtonElement.ActionButton.BorderElement.ForeColor = Color.FromArgb(255, 190, 106)

 but it only changes part of the border color. The left and right borders are unchanged. 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 28 Sep 2015, 06:34 AM
Hello Simon,

Thank you for writing.

Here is how to access the element responsible for the button border:
((BorderPrimitive)radSplitButton1.DropDownButtonElement.BorderElement).ForeColor = Color.Red;

and here is how to access the separator between the action and the arrow buttons:
radSplitButton1.DropDownButtonElement.ButtonSeparator.BorderColor = Color.Red;

I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

Regards,
Stefan
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
Simon
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or