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

Add node to menu plugged on sitemap

1 Answer 44 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Cedric
Top achievements
Rank 2
Cedric asked on 01 Oct 2008, 06:31 PM
I have a menu control that is plugged on a sitemap.

I was wondering if i can, once it's loaded, add a new node at the end of my menu in the code.

I have set the property AppendDataBoundItems but i can only add the node at the beggining of my menu.  This is not nice because i want it at the end

thx in advance

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 02 Oct 2008, 11:31 AM
Hello Cedric,

I suggest you subscribe to OnDataBound event and add the new item there like this:

protected void RadMenu1_DataBound(object sender, EventArgs e)  
{  
   RadMenu1.Items.Add(new RadMenuItem("new item"));  

Hope this helps.

Regards,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Menu
Asked by
Cedric
Top achievements
Rank 2
Answers by
Yana
Telerik team
Share this question
or