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

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

1 Answer 62 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Aljoša
Top achievements
Rank 1
Aljoša asked on 14 Oct 2014, 09:10 PM
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!






1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 16 Oct 2014, 03:49 PM
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.

 
Tags
Menu
Asked by
Aljoša
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or