Hello,
I've got a WPF application with radmenu and a radgrid. (v.2010.3.110.35)
When I click on a row in te grid, the menu-items are disabled in the main-menu, when I drag a column from the grid on the grouping header and remove it again the menu-items in de main menu are enabled again.
What could cause this problem?
I am using the code below to create the menu.
I've got a WPF application with radmenu and a radgrid. (v.2010.3.110.35)
When I click on a row in te grid, the menu-items are disabled in the main-menu, when I drag a column from the grid on the grouping header and remove it again the menu-items in de main menu are enabled again.
What could cause this problem?
I am using the code below to create the menu.
var cba = new CommandBinding(MenuCommands.TileView, GoToPageExecuteHandler, GoToPageCanExecuteHandler); CommandBindings.Add(cba); var cbas = new CommandBinding(MenuCommands.Search, GoToPageExecuteHandler, GoToPageCanExecuteHandler); CommandBindings.Add(cbas);MenuResources.Culture = Thread.CurrentThread.CurrentCulture; var baseItem = new RadMenuItem(); var TileView = new RadMenuItem(); var Search = new RadMenuItem(); var Carousel = new RadMenuItem(); baseItem.Header = MenuResources.Base; //TileView TileView.Command = MenuCommands.TileView; TileView.CommandParameter = MenuUrls.Url(MenuResources.InTileView); TileView.Header = MenuResources.InTileView; TileView.IsEnabled = true; baseItem.Items.Add(TileView); //Search Search.Command = MenuCommands.Search; Search.CommandParameter = MenuUrls.Url(MenuResources.Search); Search.Header = MenuResources.Search; Search.IsEnabled = true; baseItem.Items.Add(Search); ApplicationMenu.Items.Insert(0, baseItem); MenuCommands.MenuSet = true;private void GoToPageCanExecuteHandler(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = true; }