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

RadCheckBox

1 Answer 217 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Chet Musialowski
Top achievements
Rank 1
Chet Musialowski asked on 09 Sep 2011, 10:01 PM
Hello,

I've seen a number of posts that explain how to highlight buttons, combos, etc using the Enter and Leave events.

I would like to do the same thing with the RadCheckBox.  I've tried changing the BackColor of the ButtonElement, TextElement, etc but with no luck.

How do I accomplish this ?

Thanks,
Chet

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 14 Sep 2011, 04:16 PM
Hello Chet,

Thank you for writing.

Please consider the following code snippet, which demonstrates how to achieve the desired appearance:
private void radCheckBox1_LostFocus(object sender, EventArgs e)
{
    radCheckBox1.RootElement.ResetValue(FillPrimitive.BackColorProperty, Telerik.WinControls.ValueResetFlags.Local);
}
 
private void radCheckBox1_GotFocus(object sender, EventArgs e)
{
    radCheckBox1.RootElement.BackColor = Color.Red;
}

I hope that you find this information helpful. If there is anything else I can assist you with, do not hesitate to contact us.

Regards,
Stefan
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Chet Musialowski
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or