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

Parent Item as Child Item

1 Answer 51 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Adam Gross
Top achievements
Rank 1
Adam Gross asked on 02 Sep 2010, 06:56 PM
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

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Sep 2010, 06:26 AM
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.
Tags
Menu
Asked by
Adam Gross
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or