RadMenu with Images from Database

2 posts, 0 answers
  1. Robert
    Robert avatar
    41 posts
    Member since:
    Aug 2011

    Posted 21 Mar 2013 Link to this post

    I am driving my RadMenu from a table in SQL and would like to utilize the image column type to store the icon for my menu items rather than store the images in the project. Once I pull in the binary data and convert it to an Image object type, is there a way to set the Image of a RadMenu Item to that image? Currently, I am using the ImageURL property but this doesn't offer the flexibility that I need. Any help is appreciated.
  2. MasterChiefMasterChef
    MasterChiefMasterChef avatar
    152 posts
    Member since:
    Jan 2013

    Posted 21 Mar 2013 Link to this post

    Hi Robert,

    Take a look at this demo on the Telerik website, and refer to the code below on how to add images into the RadMenu. Are you intending to insert an image at the top of a RadMenu or inside a single RadMenuItem? Both are possible. In the demo they have a background image and make the RadMenu transparent so you can see through to the background image. The demo also covers inserting images into a RadMenuItem. 

    Hopefully this helps,
    Master Chief

  3. DevCraft R3 2016 release webinar banner
Back to Top