Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Ribbon - Hide functionality
posted

Hi,

We are using Ribbon inside an application with the CAB Framework and ver.8 of infragistics components.

We have the scenario where we want to hide toolbase items in Ribbon depending on active views and userroles in the applications. The items like tabs, groups, buttons and other items is registered using UIExtensions in CAB at runtime.

When trying to do this we observe the following:
When setting the "tool.InstanceProps.Visible = DefaultableBoolean.Visible" and also the "VisibleResolved" property is still true. We also tried to set "SharedProps.Visible" to false, but still get the same behaviour.

Any suggestions on how to "hide" items without unregister in CAB? We will like not to do the unregister since then the posision of item in group can change.

Others:
We would also like functionality to hide RibbonGroups and RibbonTabs if all the child elements are hidden to. Is there any events, propertysetter or functions existing we can use for this?

 

  • 275
    Offline posted

    You have to disable Office 2007 Compatibility to be able to hide controls on the Ribbon. The Office 2007 UI rules say that all tools are visible, you can only disable the ones you don't want, not hide them.