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

Defines the fluent interface for configuring ContextMenu scrolling/>

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ContextMenuScrollableBuilder

Inheritance: objectContextMenuScrollableBuilder

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 ContextMenuScrollableBuilder class.

C#
public ContextMenuScrollableBuilder(ContextMenuScrollable settings)
Parameters:settingsContextMenuScrollable

The settings.

Methods

Distance sets the scroll amount (in pixels) that the ContextMenu 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 ContextMenu scrolls by doubling the distance. Default value is 50.

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

The scroll distance in pixels.

Returns:

ContextMenuScrollableBuilder

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