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

Add buttons near Collapse button

2 Answers 50 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
laimonassutkus
Top achievements
Rank 1
laimonassutkus asked on 10 Apr 2017, 08:02 AM

Hi is there a way to add buttons near a collapse button in ribbon bar (see picture for more detail)?

 

Thank you :)

2 Answers, 1 is accepted

Sort by
0
laimonassutkus
Top achievements
Rank 1
answered on 10 Apr 2017, 12:29 PM

Well this was not entirely what i wanted. But found a suitible answer. Because i needed help button the answer is:
radRibbonBar.HelpButton.Visibility = ElementVisibility.Visible;

 And on top of this i put MS2013 theme.

0
Hristo
Telerik team
answered on 10 Apr 2017, 02:16 PM
Hello Laimonas,

Thank you for writing.

I am glad that the help button fits well your actual setup. In case you would like to add additional elements next to the expand button you can access the ButtonsContainer.Children collection: 
RadButtonElement element = new RadButtonElement() { Text = "Button" };
element.BorderElement.ShouldPaint = true;
element.BorderElement.ForeColor = Color.FromArgb(110, 153, 210);
element.ThemeRole = "RibbonBarExpandButton";
element.Image = null;
 
this.radRibbonBar1.RibbonBarElement.ButtonsContainer.Children.Insert(0, element);

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
RibbonBar
Asked by
laimonassutkus
Top achievements
Rank 1
Answers by
laimonassutkus
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or