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

RadioButton Grouping

1 Answer 236 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Samantha
Top achievements
Rank 1
Samantha asked on 01 Feb 2013, 09:30 PM
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!  :)

1 Answer, 1 is accepted

Sort by
0
Anton
Telerik team
answered on 06 Feb 2013, 07:18 PM
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.
Tags
RibbonBar
Asked by
Samantha
Top achievements
Rank 1
Answers by
Anton
Telerik team
Share this question
or