RadDropDownButtonElement Items with Images and no Text

5 posts, 1 answers
  1. Michael
    Michael avatar
    5 posts
    Member since:
    Sep 2011

    Posted 31 May 2012 Link to this post

    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
  2. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 06 Jun 2012 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Michael
    Michael avatar
    5 posts
    Member since:
    Sep 2011

    Posted 12 Jul 2012 Link to this post

    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
  5. Answer
    Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 16 Jul 2012 Link to this post

    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 >>
  6. Michael
    Michael avatar
    5 posts
    Member since:
    Sep 2011

    Posted 17 Jul 2012 Link to this post

    Thanks Nikolay,

    It works perfectly.

    Mike
Back to Top
UI for WinForms is Visual Studio 2017 Ready