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
138
Ultratoolbarsmanager: How to programmatically activating a child tab
posted

Hi, I need programmatically to activate a tab in a child ribbon in a UltraToolbarsManager control based on Infragistics 2008 Vol 1 using the Key value of the tab to reference my tab to activate.

Thanks in advance.

 Luca 

Parents
  • 44743
    posted

    If you are just aksing how to select a ribbon tab in a toolbars manager based on the key, you can use code similar to this:

    this.ultraToolbarsManager1.Ribbon.SelectedTab =
     this.ultraToolbarsManager1.Ribbon.Tabs[ "RibbonTabKey" ];

    If, on the other hand, you are asking how to select an mdi merged child ribbon tab in the parent manager, then you need to first find the parent tab hosting the child tab, then select that:

    UltraToolbarsManager activeChildManager = this.ultraToolbarsManager1.ActiveMdiChildManager;

    if ( activeChildManager == null )
     return;

    RibbonTab childTab = activeChildManager.Ribbon.Tabs[ "RibbonTabKey" ];
    RibbonTab parentTab = childTab.AttachedParentTab;

    if ( parentTab == null )
     return;

    activeChildManager.Ribbon.SelectedTab = parentTab;

Reply Children
No Data