Edit this page

Kendo.Mvc.UI.Fluent.MenuItemBuilder

Defines the fluent interface for configuring child menu items.

Methods

Items(System.Action<Kendo.Mvc.UI.Fluent.MenuItemFactory>)

Configures the child items of a MenuItem.

Parameters

addAction System.Action<Kendo.Mvc.UI.Fluent.MenuItemFactory>

The add action.

Example (ASPX)

<%= Html.Kendo().Menu()
    .Name("Menu")
    .Items(items =>
    {
        items.Add().Text("First Item").Items(firstItemChildren =>
        {
            firstItemChildren.Add().Text("Child Item 1");
            firstItemChildren.Add().Text("Child Item 2");
            });
        })
        %>

Items(System.Collections.Generic.IEnumerable<Kendo.Mvc.UI.MenuItem>)

Configures the child items of a MenuItem. When declaratively binding the menu item, use M:Kendo.Mvc.UI.Fluent.MenuItemBuilder.Items(System.Action{Kendo.Mvc.UI.Fluent.MenuItemFactory}).

Parameters

items System.Collections.Generic.IEnumerable<Kendo.Mvc.UI.MenuItem>

items

Example (ASPX)

<%= Html.Kendo().Menu()
    .Name("Menu")
    .Items(items =>
    {
        items.Add().Text("First Item").Items(model);
    })
%>

Separator(System.Boolean)

Renders a separator item

Example (ASPX)

<%= Html.Kendo().Menu()
    .Name("Menu")
    .Items(items =>
    {
        items.Add().Separator(true);
    })
%>