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
    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,
    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. Chris
    Chris avatar
    53 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



  4. Dess
    Dess avatar
    1904 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.
    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