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

Telerik RadRibbon control

2 Answers 244 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Divya
Top achievements
Rank 1
Divya asked on 25 Mar 2011, 01:31 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Jack
Top achievements
Rank 1
answered on 29 Mar 2011, 10:50 PM
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.
0
Ivan Petrov
Telerik team
answered on 30 Mar 2011, 03:36 PM
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
Tags
RibbonBar
Asked by
Divya
Top achievements
Rank 1
Answers by
Jack
Top achievements
Rank 1
Ivan Petrov
Telerik team
Share this question
or