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
165
Exception "ActiveGroup cannot be set ..."
posted

We are using an UltraExplorerBarWorkspace with control style OutlookNavigationPane. We have the NavigationPaneExpansionMode set to OnButtonClick to get the expand/collapse feature. The UltraExplorerBarWorkspace contains several UltraExplorerBarGroup.

The scenario: We collapse the UltraExplorerBarWorkspace (by clicking on the collapse button), then we activate a different smartPart from other group programmatically

Exception: ActiveGroup cannot be set - specified Group cannot be activated! (Group may be disabled or its header may not be visible)

//Code from class UltraExplorerBarWorkspace 

protected virtual void OnActivate(Control smartPart){      UltraExplorerBarGroup group = this.composer[smartPart];       group.Visible = true;      group.EnsureGroupInView();      group.Selected = true;

      group.Active = true;   // exception is thrown here

      smartPart.Focus();

}

 

We are using NetAdvantage for .NET 2007 Vol. 3 CLR 2.0

 

  • 69832
    Offline posted

    The OutlookNavigationPane style does not support activating a group; selecting the group brings that group's items into the foreground, so you have nothing to gain by setting the group's Active property to true. You should simply remove that line of code.

  • 260
    posted

    Hi

    Do you have a  workaround for this issue ?