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

Defines the fluent API for configuring TabStripScrollableSettings

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

TabStripScrollableSettingsBuilder method.

C#
public TabStripScrollableSettingsBuilder(TabStripScrollableSettings container)
Parameters:containerTabStripScrollableSettings

Properties

Gets the settings being configured.

C#
protected TabStripScrollableSettings Container { get; }

Methods

Sets the scroll amount (in pixels) applied when the user clicks on a scroll button.

C#
public TabStripScrollableSettingsBuilder Distance(int value)
Parameters:valueint

The value for Distance

Returns:

TabStripScrollableSettingsBuilder

Returns the current TabStripScrollableSettingsBuilder instance.

Enables or disables scrolling. By default scrolling is enabled.

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

The value which will be used for enabling or disabling the scrolling.

Returns:

TabStripScrollableSettingsBuilder

The current instance of the 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

Returns the current TabStripScrollableSettingsBuilder instance.

Sets the scroll buttons position. Default is Split.

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

The value for ScrollButtonsPosition

Returns:

TabStripScrollableSettingsBuilder

Returns the current TabStripScrollableSettingsBuilder instance.