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?
Why would the menu not be closing here? Any ideas?
3 Answers, 1 is accepted
0
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
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:
The MenuItems for Account Management subMenu are inserted dynamically when Account Management Module is loaded.
Here is a code for MenuItem Usercontrol:
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.
The application has main menu that resides in its own module as usercontrol:
<
UserControl
x:Class
=
"MyCompany.MyProduct.Desktop.Navigation.Views.MainMenuView"
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"
xmlns:telerik=
"http://schemas.telerik.com/2008/xaml/presentation"
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
Hi Michael,
George
the Telerik team
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.
George
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>