RadSplitButton - Programatically Change Border Color

2 posts, 0 answers
  1. Simon
    Simon avatar
    11 posts
    Member since:
    Aug 2011

    Posted 28 Sep 2015 Link to this post

    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. 

  2. Stefan
    Stefan avatar
    2891 posts

    Posted 28 Sep 2015 Link to this post

    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.

    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