RadMenu included in Dropdown button added on ToolBar

2 posts, 0 answers
  1. Tony
    Tony avatar
    2 posts
    Member since:
    Aug 2010

    Posted 20 Nov 2011 Link to this post

    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,
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 23 Nov 2011 Link to this post

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

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top