Multiple skins in RadMenu OR RadMenu in template of menuitem

2 posts, 0 answers
  1. Cesar
    Cesar avatar
    6 posts
    Member since:
    Jun 2007

    Posted 24 Feb 2009 Link to this post

    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
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 25 Feb 2009 Link to this post

    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.
Back to Top