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

Changing Bordercolor RadSpinEditor

3 Answers 100 Views
SpinEditor
This is a migrated thread and some comments may be shown as answers.
ronny
Top achievements
Rank 1
ronny asked on 15 Apr 2011, 01:24 PM
How can i change the bordercolor of the RadSpinEditor via Code?

In RadSpinEditor1.SpinElement i didn`t find anything like bordercolor.

3 Answers, 1 is accepted

Sort by
0
Accepted
Alexander
Telerik team
answered on 20 Apr 2011, 11:36 AM
Hello Ronny,

Thank you for your question.

RadSpinEditor's BorderPrimitive is a child element of SpinElement. You can use the following code snippet to define its color:
BorderPrimitive spinEditorBorder = this.radSpinEditor1.SpinElement.Children[1] as BorderPrimitive;
spinEditorBorder.ForeColor = Color.Red;

I hope it helps.

Best regards,
Alexander
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
ronny
Top achievements
Rank 1
answered on 20 Apr 2011, 01:11 PM
Hi Alexander,

thanks for your reply. It works fine. But i think it would be easier, if a property can be set to change the border color.

Regards, Ronny
0
Alexander
Telerik team
answered on 22 Apr 2011, 01:51 PM
Hello Ronny,

Thank you for your suggestion.
 
BorderPrimitive is a complex element which contains a set of properties for customization like BoxStyle, GradientStyle, Widths, Colors, and others. Exposing them in SpinElement would make the API heavier. Nevertheless, I agree that the BorderPrimitive itself could be exposed as a property in its parent element.

Do not hesitate to contact us again if you have additional questions.

Best regards,
Alexander
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
SpinEditor
Asked by
ronny
Top achievements
Rank 1
Answers by
Alexander
Telerik team
ronny
Top achievements
Rank 1
Share this question
or