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

3 posts, 0 answers
  1. Curtis
    Curtis avatar
    25 posts
    Member since:
    Oct 2014

    Posted 03 Oct 2015 Link to this post

    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!



  2. Curtis
    Curtis avatar
    25 posts
    Member since:
    Oct 2014

    Posted 03 Oct 2015 in reply to Curtis Link to this post

    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.




  3. Hristo
    Hristo avatar
    1059 posts

    Posted 05 Oct 2015 Link to this post

    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.

    Hristo Merdjanov
    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
Back to Top