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

Radiobutton

1 Answer 77 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Claude
Top achievements
Rank 1
Claude asked on 11 Jan 2010, 03:57 AM
How can I programitically during form load set the status of a radiobutton.

I have tried \

this.radRadioButton1.ToggleState == ToggleState.On

as shown in sample code but ToggleSet.On does not exist. 

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 11 Jan 2010, 08:27 AM
Hi Claude,

Please note that you need to include the Telerik.WinControls.Enumerations namespace if you want to work with ToggleState.On only.

If you do not include the Telerik.WinControls.Enumerations namespace, you should set the toggle state as shown below:
private void Form1_Load(object sender, EventArgs e)
{
    this.radRadioButton1.ToggleState = Telerik.WinControls.Enumerations.ToggleState.On;
}

I hope this helps. If you have additional questions, feel free to contact me.

Greetings,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Claude
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or