Completed
Last Updated: 15 Aug 2017 10:28 by ADMIN
The same case is valid for RadToggleButton as well.

To reproduce: use the following custom RadCheckBox. You will notice that the ToggleStateChanging, ToggleStateChanged, PropertyChanged, CheckStateChanging, CheckStateChanged won't fire anymore:

public class MyCheckBoxElement : RadCheckBoxElement
{
    protected override Type ThemeEffectiveType
    {
        get
        {
            return typeof(RadCheckBoxElement);
        }
    }
}

public class MyCheckBox : RadCheckBox
{
    protected override RadButtonElement CreateButtonElement()
    {
        return new MyCheckBoxElement();
    }

    public override string ThemeClassName
    {
        get
        {
            return typeof(RadCheckBox).FullName;
        }
    }
}

Workaround:

public class MyCheckBoxElement : RadCheckBoxElement
{
    protected override void OnKeyDown(KeyEventArgs e)
    {
        if (e.KeyCode == Keys.Enter)
        {
            return;
        }

        base.OnKeyDown(e);
    }

    protected override Type ThemeEffectiveType
    {
        get
        {
            return typeof(RadCheckBoxElement);
        }
    }
}

public class MyCheckBox : RadCheckBox
{
    protected override RadButtonElement CreateButtonElement()
    {
        MyCheckBoxElement checkBox = new MyCheckBoxElement();
        checkBox.ToggleStateChanging += new StateChangingEventHandler(ButtonElement_ToggleStateChanging);
        checkBox.ToggleStateChanged += new StateChangedEventHandler(ButtonElement_ToggleStateChanged);
        checkBox.PropertyChanged += new PropertyChangedEventHandler(res_PropertyChanged);
        checkBox.CheckStateChanging += new CheckStateChangingEventHandler(res_CheckStateChanging);
        checkBox.CheckStateChanged += new EventHandler(res_CheckStateChanged);
        return checkBox;
    }

    private void res_CheckStateChanged(object sender, EventArgs e)
    {
        base.OnCheckStateChanged(e);
    }

    private void res_CheckStateChanging(object sender, CheckStateChangingEventArgs args)
    {
        base.OnCheckStateChanging(args);
    }

    private void res_PropertyChanged(object sender, PropertyChangedEventArgs e)
    {
        if (e.PropertyName == "IsChecked")
        {
            base.OnNotifyPropertyChanged("IsChecked");
        }
    }

    private void ButtonElement_ToggleStateChanged(object sender, StateChangedEventArgs args)
    {
        base.OnToggleStateChanged(args);
        base.OnNotifyPropertyChanged("Checked");
        base.OnNotifyPropertyChanged("CheckState");
        base.OnNotifyPropertyChanged("ToggleState");
    }

    private void ButtonElement_ToggleStateChanging(object sender, StateChangingEventArgs args)
    {
        base.OnToggleStateChanging(args);
    }

    public override string ThemeClassName
    {
        get
        {
            return typeof(RadCheckBox).FullName;
        }
    }
}
Completed
Last Updated: 11 Jul 2017 12:14 by ADMIN
How to reproduce: check the attached video

Workaround: 
public partial class RadForm1 : Telerik.WinControls.UI.RadForm
{
    public RadForm1()
    {
        InitializeComponent();
        
        ThemeResolutionService.AllowAnimations = false;
        this.radToggleSwitch1.AllowAnimation = false;
    }
}

Completed
Last Updated: 19 Jun 2017 12:20 by ADMIN
To reproduce: apply the Window8 theme to the entire application containing a RadButton and a RadCheckBox. Change the color of RadButton to Green and handle the RadCheckBox.ToggleStateChanged event in order to enable/disable the button. You will notice that after disabling once the button enabling it again, the ButtonFillElement.NumberOfColors property is set to 1 and gradient color becomes solid. Please refer to the attached sample project and gif file.

Workaround:

int numberOfColors = 0;

private void radCheckBox1_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
{
    if (args.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On)
    {
        this.radButton1.Enabled = true;
        this.radButton1.ButtonElement.ButtonFillElement.NumberOfColors = numberOfColors;
    }
    else
    {
        numberOfColors = this.radButton1.ButtonElement.ButtonFillElement.NumberOfColors;
        this.radButton1.Enabled = false;
    }
}
Unplanned
Last Updated: 19 Jun 2017 10:48 by ADMIN
Please refer to the attached sample project and gif file. The text gets clipped sometimes when resizing the form. It may become even blurry. This problem is observed with the MS Form, but it is not reproducible with RadForm.

Workaround: use a RadForm

UPDATED: a second project is attached (00393359CheckBoxDisabledUPDATED.zip). The MissingCheckBoxesText.gif illustrates the incorrect behavior. In this case, the UseCompatibleTextRendering property is set to false.
Workaround for the second case: instead of setting the RadCheckBox.Enabled property to false, disabled the check primitive and make the text gray as follows:

private void radButton1_Click(object sender, EventArgs e)
{
    for (int i = 0; i < 30; i++)
    {
        RadCheckBox cb = new RadCheckBox();
        cb.Text = "RadCheckBox " + i;
        cb.Location = new Point(10, i * 30); 
        cb.ButtonElement.CheckMarkPrimitive .Enabled = false;
        cb.ButtonElement.TextElement.ForeColor = Color.Gray; 
        cb.ButtonElement.ShouldHandleMouseInput = false;
        cb.UseCompatibleTextRendering = false;
         
        this.Controls.Add(cb);
    }
}
Completed
Last Updated: 30 May 2017 10:30 by ADMIN
Parse event of the property binding is not fired when you change the ToggleState value of RadToggleButton:

Workaround:

private void Form1_Shown(object sender, EventArgs e)
		{
            Binding b = new Binding("ToggleState", vm, "IsToggleSet", true, DataSourceUpdateMode.OnPropertyChanged);
			b.Format += new ConvertEventHandler(b_Format);
			b.Parse += new ConvertEventHandler(b_Parse);
			radToggleButton1.DataBindings.Add(b);
		}

		void b_Parse(object sender, ConvertEventArgs e)
		{
			if (e.DesiredType != typeof(bool) || !(e.Value is ToggleState))
				return;

			ToggleState state = (ToggleState)e.Value;
			e.Value = (state == ToggleState.On) ? true : false;
		}

		void b_Format(object sender, ConvertEventArgs e)
		{
			if (e.DesiredType != typeof(ToggleState) || !(e.Value is bool))
				return;

			bool isToggleOn = (bool)e.Value;
			e.Value = isToggleOn ? ToggleState.On : ToggleState.Off;
		}
Unplanned
Last Updated: 08 Nov 2016 13:15 by ADMIN
To reproduce:
- Add SplitButton to a ribbon bar and set its image. 
- Disable the button.

Workaround:
this.radSplitButtonElement1.UseDefaultDisabledPaint = true;
Completed
Last Updated: 28 Sep 2016 06:55 by ADMIN
Workaround:
 public class MyRadToggleSwith : RadToggleSwitch
{
    public override string ThemeClassName
    {
        get
        {
            return typeof(RadToggleSwitch).FullName;
         }
    }

    protected override void OnGotFocus(EventArgs e)
    {
        base.OnGotFocus(e);
        this.ToggleSwitchElement.Focus();
     }
}

or simply put focus to the element when the control receives the focus:
private void radToggleSwitch_GotFocus(object sender, EventArgs e)
{
	this.radToggleSwitch1.ToggleSwitchElement.Focus();
}
Completed
Last Updated: 11 Jul 2016 10:37 by ADMIN
To reproduce:
public class RadForm1
{
	private RadButtonElement btnHelp;

	private void RadForm1_Load(object sender, EventArgs e)
	{
		btnHelp = new RadImageButtonElement();
		btnHelp.AutoSize = true;
		btnHelp.ShowBorder = false;
		btnHelp.Image = My.Resources.Resources.help;
		btnHelp.DisplayStyle = DisplayStyle.Image;
		btnHelp.ButtonFillElement.Visibility = ElementVisibility.Hidden;
		btnHelp.ClickMode = ClickMode.Release;
		btnHelp.Click += btnHelp_Click;

		this.FormElement.TitleBar.SystemButtons.Children.Insert(0, btnHelp);
	}

	private void btnHelp_Click(object sender, EventArgs e)
	{
		Process.Start("http://www.telerik.com");
	}
	public RadForm1()
	{
		Load += RadForm1_Load;
	}

}

Workaround:
Use the Press ClikMode.


Completed
Last Updated: 30 May 2016 08:22 by ADMIN
To reproduce:
- Set the IsThreeState to true.
- Set the state to  Indeterminate.
- Disable the checkbox. 
- Set the state to checked.
- The state is not changed. 

This is working fine if another state is used before disabling the control.

Workaround:
- Always set the state before you disable the control.
 
Unplanned
Last Updated: 10 May 2016 10:58 by ADMIN
The following themes have differences: ControlDefault, Office2010Silver, Office2013Dark, Office2013Light, TelerikMetro, TelerikMetroBlue, TelerikMetroTouch

To reproduce:

this.radSplitButton1.DropDownButtonElement.ArrowButton.Enabled = false;
this.radSplitButtonElement1.ArrowButton.Enabled = false;
Completed
Last Updated: 14 Apr 2016 11:26 by ADMIN
Setting check box to be indeterminate and disabled in design time results in incorrect state when the application is started. Setting those states after the InitializeComponent call works fine.
Completed
Last Updated: 13 Apr 2016 14:12 by ADMIN
ADMIN
Created by: Ivan Petrov
Comments: 0
Category: Buttons
Type: Bug Report
4
Steps to reproduce:
1. Add two check boxes to a form
2. Set the Checked property of one to true
3. Set their enable property to false
4. Set the theme to TelerikMetroBlue 

Run the project and you will see that both check boxes look the same - disabled and unchecked.

The same applies to Office2010Blue and RadRadioButton

Workaround it by enabling the checkboxes for a moment and then disabling them. 
Unplanned
Last Updated: 30 Mar 2016 14:29 by ADMIN
RadSplitButton does not get a focus rectangle when focus by the Tab key. One should first click the action part and then the focus rectangle will appear..

The current workaround is:
public class MyRadSplitButton : RadSplitButton 
{ 
    protected override void OnEnter(EventArgs e) 
    { 
        base.OnEnter(e); 
  
        this.DropDownButtonElement.ActionButton.Focus(); 
    } 
}
Unplanned
Last Updated: 30 Mar 2016 14:20 by ADMIN
To reproduce:

Add a RadTextBox and a RadButton to a form. On the Leave event of RadTextBox show a RadMessageBox. Start the application. Focus the textbox and click the button. The RadMessageBox will show, click the OK button and now you will see that the button is in its 'IsDefault' state (it is a bit more obvious with the Office2010 themes) and no other controls receive mouse input unless you click on the form.

Workaround:

Set the CausesValidation property of RadButton to false.
Unplanned
Last Updated: 30 Mar 2016 14:19 by ADMIN
Unplanned
Last Updated: 30 Mar 2016 14:19 by ADMIN
To reproduce:


Add a RadButton to a form. Set an image, remove the text and set the shape of the ButtonElement to a new RoundRectShape. You will see that the image will not be painted with a shape.


Workaround:


Paint the image manually:


Image img = Image.FromFile(@"jpg.jpg");
RoundRectShape shape1 = new RoundRectShape(10);


protected override void OnLoad(EventArgs e)
{
    this.button = new RadButton();
    this.button.Parent = this;
    this.button.ButtonElement.Shape = shape1;
    this.button.Paint += button_Paint;
}


void button_Paint(object sender, PaintEventArgs e)
{
    e.Graphics.SetClip(shape1.CreatePath(new Rectangle(Point.Empty, this.button.Size)));
    e.Graphics.DrawImage(img, new Rectangle(Point.Empty, this.button.Size));
}
Unplanned
Last Updated: 30 Mar 2016 10:45 by ADMIN
To reproduce:
- Add 3 radio buttons to a user control.
- Set the ToggleState of the second radio button to  On.
- Show the user control in a DockWindow.
- You will notice that the first toggle button is selected.

Workaround:
Set the toggle state after the window is added to the RadDock
void radDock1_DockWindowAdded(object sender, Telerik.WinControls.UI.Docking.DockWindowEventArgs e)
{
    if (e.DockWindow.Text == "UserControl11")
    {
        UserControl1 uc1 = e.DockWindow.Controls[0] as UserControl1;
        ((RadRadioButton)uc1.Controls[1]).ToggleState = Telerik.WinControls.Enumerations.ToggleState.On;
    }
}
Completed
Last Updated: 07 Mar 2016 11:38 by ADMIN
To reproduce:
- Set the shape at design time with the shape editor.
- Start the application or restart the designer.

Workaround:
Set the shape in code behind.
Completed
Last Updated: 21 Jan 2016 12:56 by ADMIN
Coping RadDropDownButton in design time leads to improperly distributed items collection.
Declined
Last Updated: 12 Jan 2016 12:27 by ADMIN
Created by: Xie
Comments: 1
Category: Buttons
Type: Bug Report
0
when I use office2007blacktheme, the font of radbutton doesn't work.