Radiobutton

2 posts, 0 answers
  1. Claude
    Claude avatar
    63 posts
    Member since:
    Apr 2009

    Posted 10 Jan 2010 Link to this post

    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. 
  2. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 11 Jan 2010 Link to this post

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