how to hide the RadRibbonBarCaption.

1 Answer 58 Views
RibbonBar
sun
Top achievements
Rank 1
Iron
sun asked on 21 Aug 2023, 06:39 AM

i want to hide the captionbar in ribbonbar ,which property should i use ?

sun
Top achievements
Rank 1
Iron
commented on 21 Aug 2023, 06:40 AM

i want to remove the line which "Add Context" in .

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 21 Aug 2023, 12:51 PM

Hello Sun,

The Add Context... button is used to add contextual groups to the control. This option with the Add New Tab.. will not appear when you run the application. Can you confirm that you want to remove it from the designer?

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

sun
Top achievements
Rank 1
Iron
commented on 24 Aug 2023, 12:58 AM

hello dinko, 

not just the add context... button,i had made min/max/close window button unvisible, and there is no control in this line , then i want to hide the whole line, but in fact when i run the application ,there is one empty line. just like this :

Dinko | Tech Support Engineer
Telerik team
commented on 24 Aug 2023, 09:38 AM

Thank you for clarifying your approach. You can try the below code to hide the RibbonCaption. RadRibbonBar's title bar is composed of RadRibbonBarCaption and RadQuickAccessToolbar. To hide the title bar you need to set the Visibility property of both elements to Collapsed.

this.RibbonBar.RibbonBarElement.RibbonCaption.Visibility = ElementVisibility.Collapsed;
this.RibbonBar.RibbonBarElement.QuickAccessToolBar.Visibility = ElementVisibility.Collapsed;

Give it a try and let me know how it goes.

Tags
RibbonBar
Asked by
sun
Top achievements
Rank 1
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or