How do I remove this bar below the ribbon buttons?

2 posts, 1 answers
  1. Flames
    Flames avatar
    2 posts
    Member since:
    Mar 2011

    Posted 01 Mar 2013 Link to this post

     My ribbon is like Image 1 (top ribbon), and i want to remove the bar specified on Image 2 (below ribbon) but i cannot find the right attribute to do this.

    Thanks
  2. Answer
    Anton
    Admin
    Anton avatar
    167 posts

    Posted 05 Mar 2013 Link to this post

    Hi Flames,

    Thank you for writing.

    Your question has already been answered in the support thread you've opened. 

    We kindly ask you to use just one support channel to contact us. Posting the same questions numerous times slows down our response time because we will need to review and address two or more tickets instead of one. Moreover threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket, which would be handled before a forum thread.

    I am copying the answer here so the community can benefit from it:

    To remove the described bar you should use the following code snippet:
    foreach (RadItem item in this.radRibbonBar1.CommandTabs)
    {
        RibbonTab  tab  = item as RibbonTab;
        if(tab != null)
        {
            foreach (RadRibbonBarGroup gr in tab.Items)
            {
                gr.Children[1].Children[0].Visibility = ElementVisibility.Collapsed;
            }
        }               
    }

    I hope this helps. If you have further questions, feel free to write back.

    Kind regards,
    Anton
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Join us for a FREE webinar to see all the new stuff in action.

    Interested, but can’t attend? Register anyway and we’ll send you the recording.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top