Converting DropDown to ContexMenu

2 posts, 0 answers
  1. Rob
    Rob avatar
    1 posts
    Member since:
    Nov 2013

    Posted 08 Nov 2013 Link to this post

    I Have very little programming knowledge. This program worked well before I got a newer version of Telerik. Now it is having trouble converting RadDropDownMenus to RadContextMenus. 

    mnContext = new RadDropDownMenu();
     
                mnItem = new RadMenuItem("&Add Stats" );
                mnItem.Tag = lnkToTeam;
                mnItem.Name = "AddBattingStats";
                mnContext.Items.Add(mnItem);
     
    mnContext.Click += new EventHandler(tvTeam_ContextMenu_PitchPlanRootClicked);
               planGroupNode.ContextMenu = mnContext;
               planGroupNode.Tag = null;
               planGroupNode.Name = "PitchPlanHeader";
               planGroupNode.ToolTipText = "Right-click to add or delete Pitch Plans";


  2. George
    Admin
    George avatar
    500 posts

    Posted 13 Nov 2013 Link to this post

    Hello Rob,

    Thank you for contacting us.

    You can use the DropDown property of RadContextMenu to set its DropDown. For example you will need to set your ContextMenu property as follows:
    planGroupNode.ContextMenu.DropDown = mnContext;

    If you still experience difficulties, please provide me with more detailed information about your case and from what version you upgraded.

    I hope this helps.

    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top