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

richTextEditorRibbonBar Hide Group

2 Answers 245 Views
RichTextEditor
This is a migrated thread and some comments may be shown as answers.
Jorge
Top achievements
Rank 1
Jorge asked on 14 Jan 2016, 02:46 PM

I need to hide the "Editing & Proofing" and "Styles" group, achieved hide tab.

Sorry for my bad English

2 Answers, 1 is accepted

Sort by
0
Ralitsa
Telerik team
answered on 18 Jan 2016, 10:08 AM
Hi Jorge,

Thank you for contacting us. 

In order to hide the ribbon tabs from RichTextEditorRibbonBar, you can use the following code snippet: 
//hide the command tabs - Home, Insert, Page Layout, References, Mailings, Review, View
foreach (RibbonTab item in this.richTextEditorRibbonBar1.CommandTabs)
{
    if (item.AccessibleName != "Home")
    {
        item.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
    }
}

You can also hide one of the predefined groups from RichTextEditorRibbonBar`s ribbon tab using the code snippet below: 
//hide the Edititng and Proffing and Styles group
RibbonTab homeTab = this.richTextEditorRibbonBar1.CommandTabs[0] as RibbonTab;
foreach (var item in homeTab.Items)
{
    if (item.AccessibleName == "Styles" || item.AccessibleName == "Editing && Proofing")
    {
        item.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
    }
}

I hope this information helps. If you have any additional questions, please let me know.

Regards,
Ralitsa
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
0
Jorge
Top achievements
Rank 1
answered on 18 Jan 2016, 04:01 PM
Excellent
Thank you
Tags
RichTextEditor
Asked by
Jorge
Top achievements
Rank 1
Answers by
Ralitsa
Telerik team
Jorge
Top achievements
Rank 1
Share this question
or