richTextEditorRibbonBar Hide Group

3 posts, 0 answers
  1. Jorge
    Jorge avatar
    4 posts
    Member since:
    Jan 2016

    Posted 14 Jan Link to this post

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

    Sorry for my bad English

  2. Ralitsa
    Admin
    Ralitsa avatar
    176 posts

    Posted 18 Jan Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jorge
    Jorge avatar
    4 posts
    Member since:
    Jan 2016

    Posted 18 Jan Link to this post

    Excellent
    Thank you
Back to Top