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

2 posts, 0 answers
  1. Jignesh
    Jignesh avatar
    4 posts
    Member since:
    Nov 2012

    Posted 04 Dec 2012 Link to this post

    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 ?
  2. Daniel
    Admin
    Daniel avatar
    2117 posts

    Posted 06 Dec 2012 Link to this post

    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!
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top