How to remove or hide overflow menu only ?

1 Answer 80 Views
CommandBar
Aravind
Top achievements
Rank 2
Iron
Iron
Iron
Aravind asked on 27 Aug 2024, 09:18 AM

 Hi,
    I want to remove or hide the Add or Remove Buttons / Customize... menu only. If i set like  this CommandBarStripElement4.OverflowButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed then whole overflow button will hide when i resize the screen to small. 
   I want to remove to hide only this two things Add or Remove Buttons / Customize...  from OverflowButton.

 

Thanks and Regards
Aravind

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 28 Aug 2024, 01:14 PM

Hi, Aravind,

You can use the following code snippet to hide the AddRemoveButtonsMenuItem and CustomizeButtonMenuItem from the OverflowButton:

var overflowButton = (this.radCommandBar1.CommandBarElement.Rows.First().Children.Last() as CommandBarStripElement).OverflowButton;
overflowButton.AddRemoveButtonsMenuItem.Visibility = ElementVisibility.Collapsed;
overflowButton.CustomizeButtonMenuItem.Visibility = ElementVisibility.Collapsed;

Regards,
Nadya | 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.

Tags
CommandBar
Asked by
Aravind
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or