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

RadMenu included in Dropdown button added on ToolBar

1 Answer 112 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 20 Nov 2011, 05:11 PM
There are several things needed for help while using RadMenu in Toolbar control:
1. First of all, how to remove the border between the icon and header as shown on the attached file?
2. Under the situation of puting the menu with same submenu items included on the Dropdown button as dropdowncontent, and added to Toolbar, the problem is that the IsEnabled property of menuitem only works at the first time, but once the related data changed won't reflect to menuitems.   (The funcitonability of Command binded to the menuitem works as expected base on "CanExecut..." delegated command, but the UI of "IsEnabled" won't work. This means you can still clike the menuitem which return the "False" value from "CanExecut..." command.)  Any suggestion on this?

Regards,

1 Answer, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 23 Nov 2011, 12:55 PM
Hi Tony,

Straight to the questions:
1) You should customize the control templates (they are four) of the RadMenuItem and remove the corresponding backgrounds and borders. You could remove the icon area by setting IconColumnWidth=0 on RadContextMenu, but this will hide both the background and the icons, so I guess this is not what you want. You could check the following help article for more information:
http://www.telerik.com/help/silverlight/radmenu-styles-and-templates-overview.html

2) Is this problem happening with the latest version of RadMenu (2011.3.1116)? This behavior depends on the commands that you use - the RadMenuItem keeps weak references to the commands' events and if the command implementation is also with a weak event it is possible the GC to collect the event handlers several seconds after the application is loaded. Probably a simple example project demonstrating the behavior will be the most helpful thing, but I suppose that more information will be enough - version of RadControls for WPF, delegate command implementation - Telerik, PRISM, MVVM light, or other MVVM framework, or own implementation?

Greetings,
Valeri Hristov
the Telerik team

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

Tags
Menu
Asked by
Tony
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or