RadioButton Grouping

2 posts, 0 answers
  1. Samantha
    Samantha avatar
    21 posts
    Member since:
    Apr 2009

    Posted 01 Feb 2013 Link to this post

    I have 12 radio buttons that I want to place in the same group on a RadRibbonBar.

    I would like to have them line up almost grid like - with three rows, and four columns.

    They do, however, need to remain in the same group.

    Is there a way to do this, without having to deselect all items in the code behind after each and every different RadRadioButton is clicked?

    There are way too many Radio Buttons to keep them all lined up vertically or horizontally.

    Thank you!  :)
  2. Anton
    Admin
    Anton avatar
    167 posts

    Posted 06 Feb 2013 Link to this post

    Hello Samantha,

    Thank you for writing.

    The groups in the ribbon bar are StackLayoutPanels and they are designed to arrange the elements inside lined up horizontally or vertically. So, probably the easiest way to achieve the desired functionality is to use several groups that arrange the radio buttons in the desired order. In this forum thread you can find solution for two groups that can easily be extended for 3 or 4 groups.

    Alternatively, you can wrap the items in a WrapLayoutPanel and place this panel in the content holder of a single ribbon group. Please note the way the radio buttons are arranged in this panel will depend on how big in width they are.

    I hope this helps.

    All the best,
    Anton
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top