New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent interface for configuring Menu scrolling/>

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class MenuScrollableBuilder

Inheritance: objectMenuScrollableBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the MenuScrollableBuilder class.

C#
public MenuScrollableBuilder(MenuScrollable settings)
Parameters:settingsMenuScrollable

The settings.

Example:
C#
@( Html.Kendo().Menu()
.Name("Menu")
.Scrollable(s => s.Distance(200))
)

Methods

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.

C#
public virtual MenuScrollableBuilder Distance(int pixels)
Parameters:pixelsint

The scroll distance in pixels.

Returns:

MenuScrollableBuilder

Example:
C#
@( Html.Kendo().Menu()
.Name("Menu")
.Scrollable(s => s.Distance(200))
)

Specifies where the scroll buttons appear when menu content overflows.

C#
public virtual MenuScrollableBuilder ScrollButtonsPosition(ScrollButtonsPositionType value)
Parameters:valueScrollButtonsPositionType

The value for ScrollButtonsPosition

Returns:

MenuScrollableBuilder

Example:
C#
@( Html.Kendo().Menu()
.Name("Menu")
.Scrollable(scrollable => {
scrollable.ScrollButtonsPosition(ScrollButtonsPositionType.Start);
})
)