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
920
programmatically select an item in explorerbar
posted

I try this:
_explorerBar.ActiveItem = _explorerBar.Groups[0].Items[0];

but get this Exception:
"ActiveItem cannot be set - specified Item cannot be activated! (Item may be disabled or have a style that is not activatable like Separator or Label)"

_explorerBar.Groups[0].Items[0] is this:
UltraExplorerBarItem item = new UltraExplorerBarItem(sectionId.ToString());
item.Text = sectionText;
_explorerBar.Groups[0].Items.Add(item);

 

What am I missing?

  • 920
    Verified Answer
    posted

    This was resolved in another post.

    http://community.infragistics.com/forums/p/46374/250179.aspx#250179

     

    you cant select an item until the loading event...

  • 5118
    posted

    Hi,

    What is the value of the Style property of the _explorerBar? 

    The ListBar style had this as a problem in a previous build and also it happend when you had an explorerbar style and hid the explorerbar.  Both have been resolved and released in a service release.

    Hop over to My IG -> Keys and Downloads -> your NA version -> Service Releases.  The latest service release (as of now) was sent out on the 10th of September and includes this fix.  This problem was resolved in 9.2, 10.1, 10.2, and anything moving forward.