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

RadSpinEditor focus background color.

4 Answers 159 Views
SpinEditor
This is a migrated thread and some comments may be shown as answers.
Dawid
Top achievements
Rank 1
Dawid asked on 12 Mar 2011, 12:32 PM
I'm looking for the same funcionality as :

MaskedEditBoxElement.Fill.BackColor  for RadMaskedEditBox and
TextBoxElement.Fill.BackColor for RadTextBox

for RadSpinEditor.

Below effect which I need:

TextBox and Masked are ok but Spin isn't correct for me. Please help. Thanks.

4 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 15 Mar 2011, 10:26 AM
Hello,
you can change the backcolor of the RadSpinEditor textboxitem in the following way

this.radSpinEditor1.SpinElement.TextBoxItem.BackColor = Color.Purple;

Hope that helps
Richard
0
Dawid
Top achievements
Rank 1
answered on 15 Mar 2011, 11:35 AM
I use this propert y( this.radSpinEditor1.SpinElement.TextBoxItem.BackColor) but I need that color will set for the frame this control as the same as texbox and maskededit controls. On picture that I send is showing different behaviors.
0
Richard Slade
Top achievements
Rank 2
answered on 15 Mar 2011, 12:01 PM
Hello,

You can change these items in the following way, but I would advise that instead of doing this, you create a custom theme using the Visual Style Builder to apply your new styles.

this.radSpinEditor1.SpinElement.ButtonDown.Fill.BackColor = Color.Purple;
this.radSpinEditor1.SpinElement.ButtonDown.Fill.NumberOfColors = 1;
this.radSpinEditor1.SpinElement.ButtonUp.Fill.BackColor = Color.Purple;
this.radSpinEditor1.SpinElement.ButtonUp.Fill.NumberOfColors = 1;
BorderPrimitive border = (BorderPrimitive)this.radSpinEditor1.SpinElement.Children[1];
border.BoxStyle = Telerik.WinControls.BorderBoxStyle.FourBorders;
border.BottomColor = Color.Red;
border.TopColor = Color.Red;
border.LeftColor = Color.Red;
border.RightColor = Color.Red;

Hope that helps
Richard
0
Stefan
Telerik team
answered on 16 Mar 2011, 08:22 AM
Hi Dawid, 

Please find your answer in the other thread that you have opened "Fill back color".

All the best,
Stefan
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
SpinEditor
Asked by
Dawid
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Dawid
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or