I have a ribbon group that contains two controls, a ComboBoxTool and a ControlContainerTool. Depending on user actions I want to be able show only one of these items in the group, so I set the Enabled and Visible properties of each tool's SharedProps member to show or hide the appropriate controls.
This did work initially, but now for some reason it appears the changes don't update (the enabled state does change but the visible state doesn't) and I have to switch to a different MDI tab then back again (which switches ribbons) to see the changes. :( Is there some way to force the group to redraw itself without having to switch tabs?
Thanks.
Brian
Make sure you have Office2007UICompatibility set to False on each manager, because tools in ribbon groups cannot be hidden when that True. Other than that, it sounds like a bug and I would recommend submitting it to the support group: http://ko.infragistics.com/gethelp.
I already had the Office2007UICompatibility set to false. But after some further investigation I think the the problem is related to merging mdi toolbars. I use the UltraTabbedMdiManager on my main form to implement tabbed mdi behavior, and on a child form I have the ribbon bar with the problem. If I set the MdiMergeable property of the toolbar on the main form to false, then everything works as expected, except of course the toolbars are no longer merged, which doesn't look good. :(
Have you any ideas how I can fix this, or is it a bug after all?
It still sounds like a bug, but you might be able to work around the issue by calling RefreshMerge on either manager after changing the visibility of the tools.
I have exactly the same problem and have already tried refreshmerge to no avail.
I have already reported this as a bug for version 7.3 and have been told it is now in the hot fix queue, but I don't know when that will be available. :(
Subscribe to this blog
http://blogs.infragistics.com/blogs/aogunsola/archive/2008/10/02/next-netadvantage-for-net-hotfix.aspx
to receive notice when the next hot fix will be released.
Hello, I have the same problem in 8.2. Is this a bug in this version too?