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

Clear items from RichTextEditorRibbonBar start menu.

1 Answer 84 Views
RichTextEditor
This is a migrated thread and some comments may be shown as answers.
Oproma
Top achievements
Rank 2
Oproma asked on 07 Jul 2015, 05:12 PM

Hi there,

I was wondering if it was possible to modify the start menu of the RichTextEditorRibbonBar. Ideally I would like to clear all the items and add my own. However, from my experiments, this is not possible.

 

Is there a way to achieve this without manually creating a RibbonBar and re-create all the text formating operations?

 

Thank you

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 08 Jul 2015, 07:46 AM
Hello,

Thank you for contacting Telerik support.

RichTextEditorRibbonBar uses BackstageView for item start button. More information on this functionality is available here: http://www.telerik.com/help/winforms/ribbonbar-backstage-view-working-with-backstage-view.html.

Here is also an example how to clear the existing items and add a tab item with a control in it and a button item with some functionality:
richTextEditorRibbonBar1.BackstageControl.Items.Clear();
 
BackstageTabItem tab1 = new BackstageTabItem("tab text");
tab1.Page.Controls.Add(new RadLabel() { Text = "some control" });
richTextEditorRibbonBar1.BackstageControl.Items.Add(tab1);
 
BackstageButtonItem btn1 = new BackstageButtonItem("btn text");
btn1.Click += (s,ev) => { RadMessageBox.Show("hello"); };
richTextEditorRibbonBar1.BackstageControl.Items.Add(btn1);

Note that changes to the RichTextEditorRibbonBar is recommended to be done with code, not at design time.

I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

Regards,
Stefan
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
RichTextEditor
Asked by
Oproma
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Share this question
or