ContextMenu Item Image

6 posts, 1 answers
  1. Roberto
    Roberto avatar
    7 posts
    Member since:
    Oct 2010

    Posted 09 Dec 2010 Link to this post

    Hi all,
    I'm experimenting some troubles in setting an image for the menu item of a RadContextMenu. Via code no problem: I can add a RadMenuItem to a RadContextMenu, and I can set the Image property of the RadMenuItem. The question is: how to achieve the same result via designer? The items of a RadContextMenu have RadItem as static type, and thus the Image property is not available.

    Thanks in advance for any help!
    Best Regards
    Roberto

  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 09 Dec 2010 Link to this post

    Hello Roberto,

    It is possible to set the image of a RadMenuItem in the designer. What version are you using?

    In the designer, add a radmenuitem to the RadContextMenu, and find the Image property. I have attached a screenshot which demonstrates this.

    for reference, I am using the latest Q3 2010 version
    Hope that helps
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Roberto
    Roberto avatar
    7 posts
    Member since:
    Oct 2010

    Posted 09 Dec 2010 Link to this post

    Hello Richard,

    thanks for your reply. If I open the Item collection editor of a RadContextMenu I cannot choose the type of the item to add: the add button does not open a drop down list! In fact I don't see ay RadMenuItem in my toolbox, and if I try to choose the Items to add to the toolbox tab I don't find RadMenuItem. I have just installed WinForms 2010 Q3, and the related toolbox tab automatically appeared on Visual Studio 2008.
    Any suggestion?

    Thanks again!
    Roberto
  5. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 09 Dec 2010 Link to this post

    Hi,

    Please can you check the versions of the assemblies that are referenced in your project, and the also see if there are any of the old assemblies left in the GAC (and remove them if there are). If you needed to change anything, reboot VS and give it another go.

    Let me know if this helps or if you need any more assistance.
    Richard
  6. Roberto
    Roberto avatar
    7 posts
    Member since:
    Oct 2010

    Posted 09 Dec 2010 Link to this post

    Fault of mine: I have installed Q3 but I was referencing Q2 files.
    Thanks for the help and sorry for the time!

    Best regards
    Roberto
  7. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 09 Dec 2010 Link to this post

    Glad that got it sorted. I've done the same myself before. Easily done.
    thanks
    Richard
Back to Top
UI for WinForms is Visual Studio 2017 Ready