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

RadDropDownButtonElement Items with Images and no Text

4 Answers 122 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 31 May 2012, 10:44 PM
Hello,

I want to create a rad dropdown button with items that only display an image with no text. 

For each RadMenuitem, I deleted the text, and set the displayStyle to "Image;" however, the text portion of the menu items still show up with blank text and make the menu very large.

Thanks,
Mike

4 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 06 Jun 2012, 03:40 PM
Hello Mike,

The current layout of the RadMenuItem does not allow the desired behavior out-of-the-box. However, it is generally possible to achieve what you want with some tweaks in the layout of the menu popup and in the layout of the menu item. I am attaching a sample project which demonstrates what customizations should be applied.

I hope this helps.

Greetings,
Nikolay
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Michael
Top achievements
Rank 1
answered on 12 Jul 2012, 09:33 AM
Thank you for the sample project. It works perfect in C#.

I tried converting it to vb.net. I cannot rewrite the MyMenuItem Class correctly because I get some read only / write only errors. Can you translate that class for me into vb?

Thanks a lot,
Mike
0
Accepted
Nikolay
Telerik team
answered on 16 Jul 2012, 12:16 PM
Hi Mike,

Please find attached to my reply the sample project translated in VB.NET

I hope this helps.

All the best,
Nikolay
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Michael
Top achievements
Rank 1
answered on 17 Jul 2012, 01:39 PM
Thanks Nikolay,

It works perfectly.

Mike
Tags
RibbonBar
Asked by
Michael
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Michael
Top achievements
Rank 1
Share this question
or