MenuScrollableBuilder

Methods

Distance(System.Int32)

Distance sets the scroll amount (in pixels) that the menu scrolls when the scroll buttons are hovered. Each such distance is animated and then another animation starts with the same distance. If clicking a scroll button, the menu scrolls with by doubling. Default value is 50.

Parameters

pixels - System.Int32

The scroll distance in pixels.

Example

Razor
 
             @( Html.Kendo().Menu()
                        .Name("Menu")
                        .Scrollable(s => s.Distance(200))
            )
             

ScrollButtonsPosition(Kendo.Mvc.UI.ScrollButtonsPositionType)

Specifies where the scroll buttons appear when menu content overflows.

Parameters

value - ScrollButtonsPositionType

The value for ScrollButtonsPosition

Example

Razor
 
             @( Html.Kendo().Menu()
                        .Name("Menu")
                        .Scrollable(scrollable => {
                          scrollable.ScrollButtonsPosition(ScrollButtonsPositionType.Start);
                        })
              )