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

How to build complete Menu with Items and sub-child items in Controller

1 Answer 148 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Jignesh
Top achievements
Rank 1
Jignesh asked on 04 Dec 2012, 08:31 AM
In my database menu items are configured in database with user access rights.
I want to add menu item logic to my Controller action or say want to create complete Menu object in controller and generating Kendo menu in View().

How to do that? Is it possible ?

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 06 Dec 2012, 07:49 AM
Hello,

The Menu cannot be created in the controller. You could bind to the items from the database like demonstrated in the ModelBinding demo in the examples project included with the installation and include your logic there. Using the ItemsAction method is another option.

Regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Menu
Asked by
Jignesh
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or