Parent Item as Child Item

2 posts, 0 answers
  1. Adam Gross
    Adam Gross avatar
    10 posts
    Member since:
    Dec 2009

    Posted 02 Sep 2010 Link to this post

    I have a menu that has child menu popouts.  I want to make it so that when an item is a parent it is also a child of itself.  We are using a site map provider to populate the data, so I can't add the parent item twice to make it a child of itself in the data as I get it from the provider.  So, Can RadMenu do this for me on the client?

    How it shows now:
    Parent 1
    Parent 2
    Parent 3
        Child 1
        Child 2
        Child 3

    How I need it to show:
    Parent 1
    Parent 2
    Parent 3
        Parent 3
        Child 1
        Child 2
        Child 3
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 03 Sep 2010 Link to this post

    Hello Adam,


    You could add the new RadMenuItem either from client side or server side after populating the menu from SiteMapDataSource. Get the parentitem Text and create the new childitem, add to parent menuitem.

    Demo:
    Add/Remove/Disable Items

    For  the important client side methods of the radmenu, please refer the links:
    Client-Side Basics
    RadMenuItemCollection object


    -Shinu.
Back to Top