Rajkumar Chityal
Top achievements
Rank 1
Rajkumar Chityal
asked on 13 Sep 2010, 04:21 PM
Hi,
Is there anyway to hide the title bar of the ribbonbar control?, I am using ribbon bar control in one of our views in our app, I do not want the title bar of showing up on that screen.
Thanks,
Raj.
Is there anyway to hide the title bar of the ribbonbar control?, I am using ribbon bar control in one of our views in our app, I do not want the title bar of showing up on that screen.
Thanks,
Raj.
7 Answers, 1 is accepted
0
Hello Rajkumar Chityal,
Thank you for writing.
Please consider the following code snippet in order to remove the title bar out of RadRibbonBar. Additionally, I have added two more lines of code which will allow you to remove the QuickAccessToolBar and the "Start" button in case you want to hide them as well:
I hope you find this information helpful. If there is anything else I can assist you, do not hesitate to contact me.
Best wishes,
Stefan
the Telerik team
Thank you for writing.
Please consider the following code snippet in order to remove the title bar out of RadRibbonBar. Additionally, I have added two more lines of code which will allow you to remove the QuickAccessToolBar and the "Start" button in case you want to hide them as well:
//remove the title bar
radRibbonBar1.RibbonBarElement.Children[1].Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
//remove the quick access toolbar
radRibbonBar1.RibbonBarElement.Children[0].Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
//remove the start button
radRibbonBar1.RibbonBarElement.Children[3].Children[1].Children[1].Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
I hope you find this information helpful. If there is anything else I can assist you, do not hesitate to contact me.
Best wishes,
Stefan
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Aaron
Top achievements
Rank 1
answered on 21 May 2013, 06:31 PM
It would be very helpful to add properties for removing those elements.
0
Aaron
Top achievements
Rank 1
answered on 21 May 2013, 09:18 PM
Actually, this code does not work for the 2013.1 version of the ribbon bar. The above lines appear to do nothing.
Any other way to remove the objects?
Any other way to remove the objects?
0
Hi Aaron,
Here is the code you can use it the latest version and the properties you can use to access the elements mentioned:
I hope that you find this useful.
Regards,
Stefan
Telerik
Here is the code you can use it the latest version and the properties you can use to access the elements mentioned:
radRibbonBar1.RibbonBarElement.QuickAccessToolBar.Visibility = ElementVisibility.Collapsed;
radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Visibility = ElementVisibility.Collapsed;
radRibbonBar1.RibbonBarElement.RibbonCaption.Visibility = ElementVisibility.Collapsed;
I hope that you find this useful.
Regards,
Stefan
Telerik
RadChart for WinForms is obsolete. Now what?
0
Aaron
Top achievements
Rank 1
answered on 22 May 2013, 05:12 PM
That did it. Thanks!
0
D
Top achievements
Rank 1
answered on 20 Jun 2013, 08:32 PM
Hi,
so I tried to collapse the QuickAccessToolBar and the RibbonCaption while using the Windows8 theme.
The result looks kinda weird because the ApplicationButtonElement is placed below the tabs ... see screenshot.
Regards,
Philip
so I tried to collapse the QuickAccessToolBar and the RibbonCaption while using the Windows8 theme.
The result looks kinda weird because the ApplicationButtonElement is placed below the tabs ... see screenshot.
Regards,
Philip
0
Hello Philip,
You have two options to resolve this case:
1. Set the Visibility of the RibbonCaption to Hidden:
or
2. Set the Top Margin of the ApplicationButtonElement to 0
I hope this helps.
Regards,
Stefan
Telerik
You have two options to resolve this case:
1. Set the Visibility of the RibbonCaption to Hidden:
radRibbonBar1.RibbonBarElement.RibbonCaption.Visibility = ElementVisibility.Hidden;
or
2. Set the Top Margin of the ApplicationButtonElement to 0
radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Margin =
new
Padding(
radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Margin.Left,
0,
radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Margin.Right,
radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Margin.Bottom)
I hope this helps.
Regards,
Stefan
Telerik
RadChart for WinForms is obsolete. Now what?