Toggle Button Group

4 posts, 0 answers
  1. Joe
    Joe avatar
    5 posts
    Member since:
    Feb 2008

    Posted 27 Jul 2009 Link to this post

    Is it possible to set up a group of toggle buttons such that only one button can be checked at a time?
  2. Boryana
    Admin
    Boryana avatar
    330 posts

    Posted 28 Jul 2009 Link to this post

    Hello Joseph,

    Thank you for contacting us.

    Please, find the attached sample project. It contains three RadToggleButtons and handles their Click events. Each time a RadToggleButton is clicked, the state of the rest of the RadToggleButtons are changed to Off. This implies that only one button at a time can have a ToggleState On. At the same time all of the buttons may have a ToggleState Off. I hope the sample project demonstrates the desired behavior. If you encounter any issues, do not hesitate to contact me back.

    Sincerely yours,
    Boryana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Chris
    Chris avatar
    33 posts
    Member since:
    Oct 2015

    Posted 10 Nov 2015 Link to this post

    I think the RadToggleButton could provide an official property to complete the job like that :

    ToggleGroupID (Toggle the grouped button automatically), etc.

     Programmers would no need to write lots/duplicated code.

     

    Best regards

     

    Chris

  5. Dess
    Admin
    Dess avatar
    1601 posts

    Posted 11 Nov 2015 Link to this post

    Hello Chris,

    Thank you for writing.

    Your feedback is greatly appreciated. We will consider it in the future improvement of the control if other customers have similar requests. For now, feel free to use the suggested approach by Boryana which can be easily adopted to any case.

    Should you have further questions I would be glad to help.
     
    Regards,
    Dess
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top