Multiple menus...one showing only top level items, other menu showing children

2 posts, 0 answers
  1. Aljoša
    Aljoša avatar
    1 posts
    Member since:
    Jan 2014

    Posted 14 Oct 2014 Link to this post

    Hi,

    We have a specific situation which is not so uncommon. We are using Kendo controls for ASP.NET MVC and binding them to ASP.NET Sitemap which works ok.

    We would need to setup on the top of the page Kendo Menu (or any other Kendo control?) which will show only the top level menu options without their children. Besides that, on the left side there should be another menu which does not show the top level items, but only their children.

    For example:
    - Users
           - Create
           - Manage
           - List
    - Payments
           - Create
           - Due
           - List

    Top menu should show only Users and Payments items. Left menu should show depending on which page you are either children of Users or children of Payments.


    How can this be achieved?



    Thank you!






  2. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 16 Oct 2014 Link to this post

    Hello Aljoša,

    The described behavior is unfortunately not possible to achieve. When you use sitemap binding, all items from the sitemap will be used.

    In your case you will need to hard-code the Menu items in the view, or resort to model binding (see the corresponding Menu demo in the offline demo site).

    Regards,
    Dimo
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top