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

'Telerik.WinControls.UI.RadContextMenu' cannot be converted to 'System.Windows.Forms.ContextMenu'

2 Answers 237 Views
ContextMenu
This is a migrated thread and some comments may be shown as answers.
Curtis
Top achievements
Rank 1
Iron
Iron
Veteran
Curtis asked on 03 Oct 2015, 09:14 PM

I'm sure i'm missing something simple but the solution eludes me - i'm trying to use a RadContextMenu instead of the standard Windows.Forms.ContextMenu but receive the following error:

 

'Telerik.WinControls.UI.RadContextMenu' cannot be converted to 'System.Windows.Forms.ContextMenu'.

 

Any help or suggestions would be very much appreciated!

-Curtis

 

2 Answers, 1 is accepted

Sort by
0
Curtis
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 04 Oct 2015, 12:40 AM

Sure enough, it was simple!  For anyone finding this thread...here's how it's done:

1) Drop your RadContextMenu onto your form.

2) Edit the Items collection as needed.

3) ADD a RadContextMenuManager control to your form...this will auto-create a new Property for every control on that form - property name?  RadContextMenu of course!  Click that and your context menu created in step #1 will show up on the list.

 

-C

 

0
Hristo
Telerik team
answered on 05 Oct 2015, 03:05 PM
Hi Curtis,

Thank you for sharing your solution with our community.

Indeed, this is the proper way to add a RadContextMenu to your application. Additional information is also available in the following documentation articles:  I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ContextMenu
Asked by
Curtis
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Curtis
Top achievements
Rank 1
Iron
Iron
Veteran
Hristo
Telerik team
Share this question
or