Hi I am using RadMenu. I want the dropdown menu to close after one of the menuitems clicked.
I am using the attached code but it doesn't close at this point. I need to click outside of the menu to close that dropdown options. Please help.
I am using the attached code but it doesn't close at this point. I need to click outside of the menu to close that dropdown options. Please help.
<Button Style="{StaticResource AddButton}"> <telerik:RadContextMenu.ContextMenu > <telerik:RadContextMenu EventName="Click" ItemsSource="{Binding NewEntityMenuItems}" StaysOpen="False"> <telerik:RadContextMenu.ItemTemplate> <DataTemplate> <telerik:RadMenuItem Header="{Binding Text}" Command="{Binding MenuItemClickedCommand}" StaysOpenOnClick="False"></telerik:RadMenuItem> </DataTemplate> </telerik:RadContextMenu.ItemTemplate> </telerik:RadContextMenu> </telerik:RadContextMenu.ContextMenu></Button>