Automatically wrap RibbonElements in RibbonButtonGroup

6 posts, 0 answers
  1. AMF
    AMF avatar
    34 posts
    Member since:
    Mar 2011

    Posted 22 Nov 2011 Link to this post


    I am programatically trying to add an arbitrary number of checkboxes (RadCheckBoxElements) to a Vertically aligned ButtonGroup in a RibbonBar. The problem I encounter, is when the number of Elements exceeds three/four, the elements appear 'behind' the edge of the ribbonbar: the list of elements is not continued in an imaginary adjacent column, if you will. In a textual representation, this is what I have now:

    [ ] CheckBox1
    [ ] CheckBox2
    [ ] CheckBox3
    [ ] CheckBoxn (appears partly or wholly below bar edge)

    What I want to achieve is:
    [ ] CheckBox1  [ ] CheckBox4
    [ ] CheckBox2  [ ] CheckBoxn
    [ ] CheckBox3

    Could you help me with this? Thanks in advance!
  2. Peter
    Peter avatar
    1148 posts

    Posted 25 Nov 2011 Link to this post

    Hi Amf,

    Thank you for contacting us.

    I can suggest setting RibbonBarGroup's Orientation to Horizontal and adding other
    RadRibbonBarButtonGroups elements that are Vertically oriented in this group. Finally, you should add three check boxes in each vertically oriented group.

    I hope this helps.

    All the best,
    the Telerik team

    Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

  3. steven littleford
    steven littleford avatar
    5 posts
    Member since:
    May 2010

    Posted 31 Jul 2012 Link to this post

    Yes..... this will work fine if we are talking about checkboxes. What if we are talking about Radio Buttons?
    Each set of radio buttons in a group works independently of the radio buttons in another group, so if you have 8 options then this solution will not work.

  4. Peter
    Peter avatar
    1148 posts

    Posted 02 Aug 2012 Link to this post

    Hello Steve,

    Thank you for contacting Telerik support.

    I can confirm that this case is not covered and RadioButtons should be in same group in order to work together. I cannot propose a workaround for this case due to the control implementation. 

    Please, excuse us for the introduced inconvenience. Do not hesitate to contact us if you have other questions.

    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  5. Curtis
    Curtis avatar
    16 posts
    Member since:
    Nov 2010

    Posted 19 Nov 2013 Link to this post

    Hey there,

    I was just curious if this is a feature that might make it in a release in the future? I understand it may physically not be possible due to control implementations.
  6. Peter
    Peter avatar
    1148 posts

    Posted 21 Nov 2013 Link to this post

    Hi Curtis,

    Thank you for writing and for sharing your thoughts.

    Due to the nature of the issue we are not able to provide an automatic solution for it because these RadRadioButtons are placed in different groups/panels and they does not have a common parent.
    You can handle a ToggleStateChanged event for each RadioButtonElement and manually set the state of the the other RadioButtonElements.

    Please let me know if you have further questions.

    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top