RadMenuItem.Image when selecting a resource image the name is messed up

2 posts, 0 answers
  1. Curtis
    Curtis avatar
    5 posts
    Member since:
    Oct 2014

    Posted 16 Jan 2015 Link to this post

    Take any RadMenu and put a RadMenuItem on it.
    Select the RadMenuItem and change the Image property to any resource image (either import a new one or select an existing one.)
    The form looks and acts and works correctly but...If you look at the Image property, the name is NOT the name of the selected resource.  Instead its a Base-64 Char array...

    So the Property window doesnt tell you what resource was selected.

    Is there any way to correct this?  Any help would be appreciated!

  2. Dimitar
    Dimitar avatar
    1324 posts

    Posted 21 Jan 2015 Link to this post

    Hi Curtis,

    Thank you for writing.

    By default we have an image converter that converts the image to base64 string. These strings are used by our theming functionality where the string can be converted to image. 

    What you can do in this case is to create a custom menu item and use another image converter:
    class MyItem : RadMenuItem
        public override Image Image
                return base.Image;
                base.Image = value;

    The above example uses the default .NET image converter but you can use your own as well. 

    Please let me know if there is something else I can help you with. 

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft R3 2016 release webinar banner
Back to Top