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

Defines the fluent interface for configuring Scrollable

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class TabStripScrollableSettingsBuilder

Inheritance: objectTabStripScrollableSettingsBuilder

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

C#
public TabStripScrollableSettingsBuilder(TabStripScrollableSettings settings)
Parameters:settingsTabStripScrollableSettings

The settings.

Methods

Sets the scroll amount applied when the user clicks on a scroll button.

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

The scroll distance in pixels.

Returns:

TabStripScrollableSettingsBuilder

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

Enables or disables scrolling. By default scrolling is enabled.

C#
public virtual TabStripScrollableSettingsBuilder Enabled(bool value)
Parameters:valuebool

The value used for determining the enablement of the scrolling.

Returns:

TabStripScrollableSettingsBuilder

The Enabled method is useful when you need to enable scrolling based on certain conditions.

Example:
C#
@( Html.Kendo().TabStrip()
.Name("TabStrip")
.Scrollable(s => s.Enabled(false))
)

Sets the scroll buttons visibility. Default is Auto.

C#
public TabStripScrollableSettingsBuilder ScrollButtons(ScrollButtonsType value)
Parameters:valueScrollButtonsType

The value for ScrollButtons

Returns:

TabStripScrollableSettingsBuilder

Example:
C#
@( Html.Kendo().TabStrip(Model)
.Name("TabStrip")
.Scrollable(s => s.ScrollButtons(ScrollButtonsType.Start))
)

Sets the scroll buttons position. Default is Split.

C#
public TabStripScrollableSettingsBuilder ScrollButtonsPosition(ScrollButtonsPositionType value)
Parameters:valueScrollButtonsPositionType

The value for ScrollButtonsPosition

Returns:

TabStripScrollableSettingsBuilder

Example:
C#
@( Html.Kendo().TabStrip(Model)
.Name("TabStrip")
.Scrollable(s => s.ScrollButtonsPosition(ScrollButtonsPositionType.Start))
)