Two Radmenus with sitemapdatasource

3 posts, 0 answers
  1. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 16 Sep 2009 Link to this post

    Hi,

    I have 2 instances of RAD Menu on a page: one main navigation horizontal line and one submenu on left hand side of a page (vertical). Both are fed from the same SiteMapProvider. Is it possible to set the .rmFocused style for 1st level item from the submenu clicked item?

    Regards,
    Marc
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 18 Sep 2009 Link to this post

    Hi Marc,

    Please, refer to the Show Path demo:
    http://demos.telerik.com/aspnet-ajax/menu/examples/programming/showpath/defaultcs.aspx?Page=Contact%20Sales


    Kind regards,
    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 21 Sep 2009 Link to this post

    OK the example works for one RadMenu

    Because I have two menu objects on the page this did not work.
    I solved it by setting for the top menu

    RadMenu1.MaxDataBindDepth=2

    instead of

    RadMenu1.MaxDataBindDepth=1

    The sublevels are hidden for the top menu. By this, a click on the submenu item keeps the top level menu item highlighted.

    Regards,
    Marc



Back to Top