Hi,
I'm setting a menu using the "mega drop-down" sample. The menu and sitemap are working fine but I'd like to dynamically update a part of the menu items.
I'm binding some content from the siteMap on the left of the menuItem and, on the right, I want to dynamicall add some text:
I've tried using a "Label" but cannot access it from my code-behind (vb.net). Is it protected because it is inside the RadMenuItem ?
Thank you for your help.
I'm setting a menu using the "mega drop-down" sample. The menu and sitemap are working fine but I'd like to dynamically update a part of the menu items.
I'm binding some content from the siteMap on the left of the menuItem and, on the right, I want to dynamicall add some text:
<telerik:RadMenuItem Text="Home" PostBack="false" CssClass="menuOff" ClickedCssClass="menuOn" SelectedCssClass="menuOn" FocusedCssClass="menuOn" ExpandedCssClass="menuOn"> |
<Items> |
<telerik:RadMenuItem CssClass=""> |
<ItemTemplate> |
<div class="menuContent"> |
<div class="menuLeftPart"> |
<div id="menuSiteMap"> |
<telerik:RadSiteMap runat="server" ID="RadSiteMapHome" Skin="" DataSourceID="RadSiteMapData0" Width="640px" CssClass="leSiteMap" EnableTheming="false"> |
<DefaultLevelSettings> |
<NodeTemplate> |
<a class="siteMapLink" href='<%# DataBinder.Eval(Container.DataItem, "url") %>'> |
<%# DataBinder.Eval(Container.DataItem, "title") %> |
</a> |
</NodeTemplate> |
</DefaultLevelSettings> |
</telerik:RadSiteMap> |
</div> |
</div> |
<div class="menuRightPart">[Insert HTML code here dynamically]</div> |
</div> |
</ItemTemplate> |
</telerik:RadMenuItem> |
</Items> |
</telerik:RadMenuItem> |
Thank you for your help.