Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Menu > RadMenu visible after onclick event fires

Not answered RadMenu visible after onclick event fires

Feed from this thread
  • Dave avatar

    Posted on Mar 22, 2011 (permalink)

    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?

    Reply

  • Yana Yana admin's avatar

    Posted on Mar 25, 2011 (permalink)

    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

    Reply

  • Michael avatar

    Posted on Aug 11, 2011 (permalink)

    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.

    Reply

  • George George admin's avatar

    Posted on Aug 19, 2011 (permalink)

    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 >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Menu > RadMenu visible after onclick event fires