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

Converting DropDown to ContexMenu

1 Answer 86 Views
ContextMenu
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 08 Nov 2013, 05:10 PM
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";


1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 13 Nov 2013, 04:13 PM
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 >>
Tags
ContextMenu
Asked by
Rob
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or