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

checkbox eventhandler

1 Answer 149 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 02 Apr 2008, 08:06 AM
Hello,

just a information for telerik. As far as we could see their is no event for the radCheckBox for WinForms for the Event checked or ischecked. So we had to use the normal win checkbox.

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 02 Apr 2008, 12:27 PM
Hello David,

Thank you for writing.

To handle the event of RadCheckBox state change, you could use the ToggleStateChanged or ToggleStateChanging events.

Please review the code-block provided below as reference:

private void radCheckBox1_ToggleStateChanged(object sender, StateChangedEventArgs args)  
{  
    if (this.radCheckBox1.IsChecked)  
    {  
        MessageBox.Show("Checked!");  
    }  
    else 
    {  
        MessageBox.Show("Unchecked!");  
    }  

I hope this was helpful. If you have other questions, do not hesitate to contact me again. 

Sincerely yours,
Martin Vasilev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Share this question
or