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

[Solved] RadMenuItem.Controls.Add(...) removes links from Item Image

1 Answer 94 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Fabio
Top achievements
Rank 1
Fabio asked on 27 Mar 2009, 10:01 AM
I'm trying to add ItemTemplates dynamically by calling RadMenuItem.Controls.Add()

The problem is, the moment I do this, the MenuItem's Image/Icon loses its url/link.

How can I fix this...?

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 30 Mar 2009, 08:36 AM
Hello Fabio,

This is the default behavior as RadMenu detects templated items and does not render image for them. The workaround is to add an image control with the desired ImageUrl in the controls collection of the menu item.

Greetings,
Albert
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Menu
Asked by
Fabio
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or