Telerik RadRibbon control

3 posts, 1 answers
  1. Divya
    Divya avatar
    47 posts
    Member since:
    Mar 2011

    Posted 25 Mar 2011 Link to this post

    Hi,
             Iam using a rad ribbon control in that i have added 2 rad groups,in 1st group i have added 3 rad button elements i want to separate each radbutton element with a RadSeperator i tried i was not able to do .So please can anyone explain me how to do place RadSepearator betwen the two RadButton elements.


    Thanks
     Divya


  2. Answer
    Jack
    Jack avatar
    25 posts
    Member since:
    Feb 2011

    Posted 29 Mar 2011 Link to this post

    Hi Divya,

    This is how you can add a RibbonBarGroupSeparator.
    1. Add a RadRibbonBarGroup to your ribbonbar.
    2. Add a RadRibbonBarButtonGroup to the RadRibbonBarGroup you just created.
    3. Now add the RadButtonElements and the RibbonBarGroupSeparator alternatively to the RadRibbonBarButtonGroup.

    Check out the attached image to get an idea.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 30 Mar 2011 Link to this post

    Hello Divya,

    Thank you for writing.

    You can either use the available separator as Jack has described in his post or you can use the RadHostItem to host a RadSeparatorElement. Consider the following code snippet:

    RadSeparator separator = new RadSeparator();
    separator.Orientation = Orientation.Vertical;
     
    RadHostItem host = new RadHostItem(separator);
    host.MinSize = new System.Drawing.Size(5, 5);
     
    radRibbonBarGroup1.Items.Add(host);

    I hope this will help you. If you need further assistance, feel free to ask.

    All the best,
    Ivan Petrov
    the Telerik team
Back to Top