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

ContextMenu Item Image

5 Answers 125 Views
ContextMenu
This is a migrated thread and some comments may be shown as answers.
Roberto
Top achievements
Rank 1
Roberto asked on 09 Dec 2010, 10:31 AM
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

5 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 09 Dec 2010, 10:42 AM
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
0
Roberto
Top achievements
Rank 1
answered on 09 Dec 2010, 10:50 AM
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
0
Richard Slade
Top achievements
Rank 2
answered on 09 Dec 2010, 10:55 AM
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
0
Roberto
Top achievements
Rank 1
answered on 09 Dec 2010, 11:13 AM
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
0
Richard Slade
Top achievements
Rank 2
answered on 09 Dec 2010, 11:18 AM
Glad that got it sorted. I've done the same myself before. Easily done.
thanks
Richard
Tags
ContextMenu
Asked by
Roberto
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Roberto
Top achievements
Rank 1
Share this question
or