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.

RETURNS

Returns the current TabStripBuilder instance.

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.

RETURNS

Returns the current TabStripBuilder instance.

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.

RETURNS

Returns the current TabStripBuilder instance.

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.

RETURNS

Returns the current TabStripBuilder instance.

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.

RETURNS

Returns the current TabStripBuilder instance.

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.

RETURNS

Returns the current TabStripBuilder instance.

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.

RETURNS

Returns the current TabStripBuilder instance.

Example

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

Closable(System.Boolean)

Specifies whether each tab can be closed via a close button. When enabled, each tab includes a close icon that triggers tab removal on click. This applies to all tabs in the TabStrip. In case you want to have specific tabs with a different closable behavior, you can set the closable option in the specific tab item options.

Parameters

value - System.Boolean

The value for Closable

Closable()

Specifies whether each tab can be closed via a close button. When enabled, each tab includes a close icon that triggers tab removal on click. This applies to all tabs in the TabStrip. In case you want to have specific tabs with a different closable behavior, you can set the closable option in the specific tab item options.

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

IconPosition(Kendo.Mvc.UI.IconPosition)

Specifies the position of the icon in the Menu items using the text content as a reference.

Parameters

value - IconPosition

The value for IconPosition

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.

RETURNS

The instance that represents the component.

Expression(System.String)

Sets the name of the component.

Parameters

modelExpression - System.String

RETURNS

Returns the current instance.

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

Sets the name of the component.

Parameters

modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer

RETURNS

Returns the current instance.

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name.

RETURNS

Returns the current instance.

Deferred(System.Boolean)

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

Parameters

deferred - System.Boolean

RETURNS

Returns a DeferredWidgetBuilder instance.

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

RETURNS

Returns the current instance.

HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

Parameters

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

The HTML attributes.

RETURNS

Returns the current instance.

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.

RETURNS

Returns the current instance.

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.

RETURNS

Returns the current instance.

Render()

Renders the component in place.

ToHtmlString()

Returns the HTML representation of the component.

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

Parameters

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

ToClientTemplate()

Returns the client template for the component.

AsModule(System.Boolean)

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

Parameters

value - System.Boolean

RETURNS

Returns the current instance.