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

TabStripBuilder

Properties

WriteAction - Func

Methods

Animation(System.Boolean)

Configures the animation effects of the TabStrip.

Parameters

enable - System.Boolean

Whether the component animation is enabled.

Example


            @( Html.Kendo().TabStrip()
                        .Name("PanelBar")
                        .Animation(false))

Animation(System.Action)

Configures the animation effects of the TabStrip.

Parameters

animationAction - System.Action<PopupAnimationBuilder>

The action that configures the animation.

Example


            @( Html.Kendo().TabStrip()
                        .Name("PanelBar")
                        .Animation(animation => animation.Open(config => config.Fade(FadeDirection.In))))

SelectedIndex(System.Int32)

Selects the item at the specified index of the TabStrip.

Parameters

index - System.Int32

The index.

Example


             @( Html.Kendo().TabStrip()
                        .Name("TabStrip")
                        .Items(items =>
                        {
                            items.Add().Text("First Item");
                            items.Add().Text("Second Item");
                        })
                        .SelectedIndex(1))

ItemAction(System.Action)

Callback for each item of the TabStrip.

Parameters

action - System.Action<TabStripItem>

Action, which will be executed for each item.

Example


             @( Html.Kendo().TabStrip()
                        .Name("TabStrip")
                        .ItemAction(item =>
                        {
                            item
                                .Text(...)
                                .HtmlAttributes(...);
                        })
            )

HighlightPath(System.Boolean)

Select item depending on the current URL.

Parameters

value - System.Boolean

If true the item will be highlighted.

Example


             @( Html.Kendo().TabStrip()
                        .Name("TabStrip")
                        .HighlightPath(true)
            )

Items(System.Action)

Defines the items in the TabStrip.

Parameters

addAction - System.Action<TabStripItemFactory>

The add action.

Example


             @( Html.Kendo().TabStrip()
                        .Name("TabStrip")
                        .Items(items =>
                        {
                            items.Add().Text("First Item");
                            items.Add().Text("Second Item");
                        })
            )

BindTo(System.Collections.Generic.IEnumerable,System.Action)

Binds the tabstrip to a list of objects.

Parameters

dataSource - System.Collections.Generic.IEnumerable<T>

The data source.

itemDataBound - System.Action<TabStripItem,T>

The action executed for every data bound item.

Example


             @( Html.Kendo().TabStrip()
                        .Name("TabStrip")
                        .BindTo(new []{"First", "Second"}, (item, value) =>
                        {
                           item.Text = value;
                        })
            )

Collapsible(System.Boolean)

Specifies whether the TabStrip should be able to collapse completely when clicking an expanded tab.

Parameters

value - System.Boolean

The value for Collapsible

Collapsible()

Specifies whether the TabStrip should be able to collapse completely when clicking an expanded tab.

Specifies whether the TabStrip should be keyboard navigatable.

Parameters

value - System.Boolean

The value for Navigatable

Scrollable(System.Action)

If enabled, the TabStrip will display buttons that will scroll the tabs horizontally, when they cannot fit the TabStrip width. By default scrolling is enabled.The feature requires "top" or "bottom" tabPosition.Unless disabled, scrollable must be set to a JavaScript object, which represents the scrolling configuration.See Scrollable Tabs for more information.

Parameters

configurator - System.Action<TabStripScrollableSettingsBuilder>

The configurator for the scrollable setting.

Scrollable(System.Boolean)

If enabled, the TabStrip will display buttons that will scroll the tabs horizontally, when they cannot fit the TabStrip width. By default scrolling is enabled.The feature requires "top" or "bottom" tabPosition.Unless disabled, scrollable must be set to a JavaScript object, which represents the scrolling configuration.See Scrollable Tabs for more information.

Parameters

enabled - System.Boolean

Enables or disables the scrollable option.

Sortable(System.Boolean)

If enabled, users will be able to sort the tabs by dragging them to the desired position.

Parameters

value - System.Boolean

The value for Sortable

Sortable()

If enabled, users will be able to sort the tabs by dragging them to the desired position.

TabPosition(Kendo.Mvc.UI.TabStripTabPosition)

The criterion operator type.

Parameters

value - TabStripTabPosition

The value for TabPosition

Value(System.String)

Specifies the selected tab. Should be corresponding to the dataTextField configuration and used when bound to a DataSource component.

Parameters

value - System.String

The value for Value

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<TabStripEventBuilder>

The client events action.

Example


            @(Html.Kendo().TabStrip()
                  .Name("TabStrip")
                  .Events(events => events
                      .Activate("onActivate")
                  )
            )

ToComponent()

Returns the internal view component.

Expression(System.String)

Sets the name of the component.

Parameters

modelExpression - System.String

Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

Parameters

modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name.

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with

Parameters

deferred - System.Boolean

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The HTML attributes.

ScriptAttributes(System.Object,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Object

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

Render()

Renders the component in place.

ToHtmlString()

WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

Parameters

writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder

ToClientTemplate()

AsModule(System.Boolean)

Specifies whether the initialization script of the component will be rendered as a JavaScript module.

Parameters

value - System.Boolean
In this article
Not finding the help you need?