Show Icon Menu From DataSource

2 posts, 0 answers
  1. Diego
    Diego  avatar
    5 posts
    Member since:
    Jan 2012

    Posted 15 Jun 2012 Link to this post

    Hello I'm using RadMenu integrated with DataSource.
    In my database I have an column for each MenuItem and the respectives Icons.

    I have to associate the icon in my RadMenu from DataBase.

    Its Possible?

    Best Regards.

    Diego Oliveira
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 18 Jun 2012 Link to this post

    Hi Diego,

    Try binding the image as shown below.

    protected void RadMenu1_ItemDataBound(object sender, Telerik.Web.UI.RadMenuEventArgs e)
          e.Item.ImageUrl = (string)DataBinder.Eval(e.Item.DataItem, "Image"); 

Back to Top