This is a migrated thread and some comments may be shown as answers.

RadMenu visible after onclick event fires

3 Answers 128 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 2
Dave asked on 22 Mar 2011, 09:04 PM
We have implemented the RadMenu in a new application and when we click on a menu item it correctly fires off an event which launches a C++ MFC application and exits the click event.  The MFC application launches without issue, but it is visible behind the menu which is still visible.  If we click on the MFC app the Menu disappears. 

Why would the menu not be closing here?  Any ideas?

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 25 Mar 2011, 03:14 PM
Hi Dave,

I'm afraid that we're not aware of such issues with RadMenu, could you please send us sample project demonstrating the erroneous behavior? Thanks

Greetings,
Yana
the Telerik team
0
Michael
Top achievements
Rank 1
answered on 11 Aug 2011, 04:24 PM
Sorry for hijacking this thread but I am having same problem in my WPF Prism application.

The application has main menu that resides in its own module as usercontrol:
<UserControl x:Class="MyCompany.MyProduct.Desktop.Navigation.Views.MainMenuView"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:prism="clr-namespace:Microsoft.Practices.Prism.Regions;assembly=Microsoft.Practices.Prism"
             >
    <telerik:RadMenu VerticalAlignment="Top">
        <telerik:RadMenuItem Header="File">
            <telerik:RadMenuItem Header="Exit" />           
        </telerik:RadMenuItem>
         
        <telerik:RadMenuItem Header="Account Management">
            <ItemsControl prism:RegionManager.RegionName ="AccountManagementMenuRegion" />
        </telerik:RadMenuItem>
         
    </telerik:RadMenu>
</UserControl>

The MenuItems for Account Management subMenu  are inserted dynamically when  Account Management Module is loaded.
[ModuleExport(typeof(AccountManagementModule))]
public class AccountManagementModule : IModule
{
     private readonly IRegionManager _regionManager;
     [ImportingConstructor]
    public AccountManagementModule([Import]IRegionManager regionManager)
    {
        _regionManager = regionManager;
     }
     public void Initialize()
    {
        _regionManager.RegisterViewWithRegion("AccountManagementMenuRegion", typeof(AccountRequirementsMenuItem));
         // more menu items here ...
      }
}

Here is a code for MenuItem Usercontrol:
<telerik:RadMenuItem x:Class="MyCompany.MyProduct.Desktop.Views.MenuItems.AccountRequirementsMenuItem"
DataContext="{Binding ViewModel, RelativeSource={RelativeSource Self}}"
Header="{Binding MenuItemHeader}"
Command="{Binding DisplayViewCommand}"
>
</telerik:RadMenuItem>

When I am clicking on Account Requirements MenuItem the View is being displayed but Account Management  Dropdown menu is stays open until I click somewhere outside of it .

Clicking on File->Exit works as expected - event fired and menu closed automatically.
0
George
Telerik team
answered on 19 Aug 2011, 08:53 AM
Hi Michael,

We are not aware of such problem with RadMenu control. Could you please open a support ticket and attach a sample project that reproduces the problem? This will definitely help us in further pinpointing and resolving the problem.


Kind regards,
George
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
Menu
Asked by
Dave
Top achievements
Rank 2
Answers by
Yana
Telerik team
Michael
Top achievements
Rank 1
George
Telerik team
Share this question
or