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

menu functionality

1 Answer 82 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 21 Dec 2012, 08:12 AM
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

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 25 Dec 2012, 09:09 AM
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!
Tags
Menu
Asked by
Daniel
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or