RadSpinEditor focus background color.

5 posts, 0 answers
  1. Dawid
    Dawid avatar
    9 posts
    Member since:
    Dec 2008

    Posted 12 Mar 2011 Link to this post

    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.
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 15 Mar 2011 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dawid
    Dawid avatar
    9 posts
    Member since:
    Dec 2008

    Posted 15 Mar 2011 Link to this post

    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.
  5. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 15 Mar 2011 Link to this post

    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
  6. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 16 Mar 2011 Link to this post

    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!
Back to Top
UI for WinForms is Visual Studio 2017 Ready