Add node to menu plugged on sitemap

2 posts, 0 answers
  1. Cedric
    Cedric avatar
    15 posts
    Member since:
    Apr 2008

    Posted 01 Oct 2008 Link to this post

    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
  2. Yana
    Yana avatar
    5037 posts

    Posted 02 Oct 2008 Link to this post

    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.

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top