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

Multiple skins in RadMenu OR RadMenu in template of menuitem

1 Answer 48 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Cesar
Top achievements
Rank 1
Cesar asked on 25 Feb 2009, 12:44 AM
Hi,

I want to create a menu (in code) with an average number of MenuItems.  Say about 5 top level each with 4 or 5 child submenu items.  That's easy.

Now to one of those sub menu items, I want to add a few hundred menu item, but have a different skin applied to them.  I'll call this the
"DrillDown" menu.  What is the best way to do this?

I know RadMenu can have only one skin and is applied at the menu level, not the child MenuItem level, so I see the following two chices:

(1) set the CSS for each of the MenuItems I'm adding to the DrillDown menu.  The only drawback to this is that there are so many items in this submenu that I wonder if that makes the markup bloated.

(2) add a second RadMenu as a child control of one of the MenuItems of the main RadMenu.  I can then set the skin of this second RadMenu to be different than the first.  I've tried this approach, but it seems that the resultant "DrillDown" menu styles are affected by the main menu's styles.

Any ideas?

Thanks in advance,
Cesar

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 25 Feb 2009, 07:40 AM
Hello Cesar,

I recommend you modify your skin to accommodate the design requirements. Even setting the CssClass of every drilldown menu item is better than using nested RadMenu objects.

Regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Menu
Asked by
Cesar
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or