menu functionality

2 posts, 0 answers
  1. Daniel
    Daniel avatar
    192 posts
    Member since:
    Mar 2012

    Posted 21 Dec 2012 Link to this post

    Hello,
    how can i execute an action from the controller,on clicking a menu item?

    Also,the menu can be align vertically?or for that is the other control,the panel bar?

    Thanks in advance
  2. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 25 Dec 2012 Link to this post

    Hello Daniel,

    You can have a vertical Menu by setting the widget's Orientation property.

    Html.Kendo().Menu()
          .Name("Menu1")
          .Orientation(MenuOrientation.Vertical)

    An Action can be executed if you configure it:

    items.Add()
     .Text("Click me")
     .Action("actionName", "controllerName");

    The Action() fluent method has 5 overloads, which are displayed in VS intellisense.

    Regards,
    Dimo
    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