Hi Christopher ,
I posted an answer to the support thread you started, but I will post it here as well in case any one else encounters the same issues:
This issue is caused by the selection, basically when you add the contextual tabs the first one gets selected by default and that causes an issue with the
MinimizedPopup - it cannot be opened. This is an issue that is caused by the current implementation of the
RadRibbonBar control.
As a workaround I handled the
RadRibbonBar.PreviewSelectedTabChanged event based on the
toolbarPopupLocked flag value. Basically when the contextual tabs are added and the flag is set to
True, I handle both the opening of the popup and the change of the selection. Also, I am not aware of your entire scenario and implementation, but you might not need to handle the
MouseEnter event. I believe that the
toolbarPopupLocked flag can be set to
True when adding the
ContextualGroup and as soon as you handle the
PreviewPopupOpened event, you can set it back to
false. I attached a sample project to illustrate a possible implementation of your scenario.
However, please keep in mind that the
RadRibbonBar implementation has many known limitation. This is why we decided that it is best to provide a new implementation of the control. The new
RadRibbonView control has pretty much the same API as the
RadRibbonBar but it significantly improves its functionality, databinding support and design-time support. And after the official release of the control we started advising all our customers to switch to it as the
RibbonBar control support will be discontinued in time.
However, in your case, unfortunately, for the moment you can't take advantage of the
RadRibbonView control as it still doesn't support a scenario where the
ContextualTabs are loaded at run-time from code-behind. But this is an issue that we will fix for the upcoming ServicePack release and once the 2011 Q2 SP1 release is out you can give the
RibbonView control as it's better to use this control in production code rather than the
RadRibbonBar.
Regards,
Tina Stancheva
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward!
We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>