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

Show Icon Menu From DataSource

1 Answer 109 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Diego
Top achievements
Rank 1
Diego asked on 15 Jun 2012, 08:41 PM
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

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 18 Jun 2012, 05:12 AM
Hi Diego,

Try binding the image as shown below.

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

Thanks,
Princy.
Tags
Menu
Asked by
Diego
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or