Shared RadItemCollection

3 posts, 0 answers
  1. Growls
    Growls avatar
    20 posts
    Member since:
    Apr 2009

    Posted 15 Jan 2017 Link to this post

    Hi Telerik, is there a way to share a list of RadMenuItems over multiple menus? I would like a list of options for a selection in a treeview (left click) as well as the same options in a right click context menu on the tree.

    I have setup the radmenuitems in the context menu, however if I clone those items and place them in the RadMenu, they disappear from the context menu and only appear in the radmenu.


    The items are only RadMenuItems, and RadMenuSeparatorItems, and RadMenuHeaderItems.


  2. Growls
    Growls avatar
    20 posts
    Member since:
    Apr 2009

    Posted 15 Jan 2017 Link to this post

    Also the items in the radmenu, after moving them, appear to not wrap. What I mean is that some lines have two menu items on them, I would expect (and want) them to appear one on each line.
  3. Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    4177 posts

    Posted 16 Jan 2017 Link to this post

    Hello Craig,

    Thank you for writing.  

    One RadMenuItem instance can be added to only one Items collection. Thus, the menu item's parent is specified. If you need to have identical menu options in the context menu and the RadMenu on the form, for example, it is necessary to create two separate RadMenuItems. However, you can subscribe the Click event to one and the same even handler. 

    Additional information for RadTreeView's context menu is available in the following section in the online documentation:

    I hope this information helps. Should you have further questions I would be glad to help.

    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top