We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Easily show/hide bars in MainFrameBarManager?

A have in my project many bars and I want to show/hide some bars programmatically? How could this be done easily? Thanks in advance ;)

3 Replies

AD Administrator Syncfusion Team April 15, 2004 12:10 PM UTC

Hi Iliyan, You could get hold of the CommandBarExt associated with the Bar object and set its Visible property to false for this purpose (as shown in code below). CommandBarExt cmdbar = this.mainFrameBarManager1.GetBarControl(bar) as CommandBarExt; cmdbar.Visible = isVisible; Please refer to the sample attached that illustrates this. Thanks for considering Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.


IG iliyan georgiev April 16, 2004 08:42 AM UTC

Thanks, works great ;)


AD Administrator Syncfusion Team April 16, 2004 09:47 AM UTC

Hi Iliyan, Thanks for the update. Please feel free to contact us if you need any other information. Regards, Guru Patwal Syncfusion, Inc.

Loader.
Live Chat Icon For mobile
Up arrow icon