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

How do I remove this bar below the ribbon buttons?

1 Answer 88 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Flames
Top achievements
Rank 1
Flames asked on 01 Mar 2013, 09:34 PM
 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

1 Answer, 1 is accepted

Sort by
0
Accepted
Anton
Telerik team
answered on 05 Mar 2013, 02:44 PM
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.
Tags
RibbonBar
Asked by
Flames
Top achievements
Rank 1
Answers by
Anton
Telerik team
Share this question
or