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
765
Button on Ribbon is invisible...
posted

hi i'm use VS2008 and Infragistics2.Win.v11.2 (11.2.20112.2050)

SharedProps.Visible = False ... Does not disappear

I want using the Ribbon and make the button disappear

Ask for help

infragisticsRibbonButtoninvisible.zip
  • 48586
    posted

    Hello, ­­­­­

     

    I am just checking about the progress of this issue. Let me know If you need my further assistance on this  matter?

     

    Thank you for using Infragistics Components.

     

  • 48586
    Verified Answer
    posted

    Hello ,

     

    Our Ribbon was developed based on Microsoft Ribbon guidelines. In the section “Interaction” is described that it is not recommended to remove toll from the ribbon because doing so can cause the ribbon layout to change, making the ribbon presentation unusable. That is why visible property of ToolBase object act as “Enable”

     

    http://msdn.microsoft.com/en-us/library/windows/desktop/cc872782.aspx#interaction

     

    So if want to hide ToolBase object of customer view, you should remove it from the tools collection. You could use code like:

     

    UltraToolbarsManager1.Ribbon.Tabs("ribbon1").Groups("ribbonGroup1").Tools.Remove(UltraToolbarsManager1.Ribbon.Tabs("ribbon1").Groups("ribbonGroup1").Tools("ButtonTool1"))

     

    Also in order not to loose this ToolBase object you could add it to a prive global collection variable and when you need to make this toolBase object visible again, then just insert it to Tools collection of the desired UltraToolbarsManager element.

     

    Please let me know if you have nay further questions.