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

Razor
 
            @( 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

Razor
 
            @( 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

Razor
 
             @( 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

Razor
 
             @( 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

Razor
 
             @( 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

Razor
 
             @( 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

Razor
 
             @( 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.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.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.

TabAlignment(Kendo.Mvc.UI.TabStripTabAlignment)

Specifies the alignment of the component tabs. Default is Start. Not applicable with Scrollable TabStrip.

Parameters

value - TabStripTabAlignment

The value for TabAlignment

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

Size(Kendo.Mvc.UI.ComponentSize)

Specifies the size of the component. Default is Medium.

Parameters

value - ComponentSize

The value for Size

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<TabStripEventBuilder>

The client events action.

Example

Razor
 
            @(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