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. You can configure the closable behavior for individual tabs by setting the closable option in the specific tab item options.

Parameters

value - System.Boolean

The value for Closable

RETURNS

Returns the current TabStripBuilder instance.

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. You can configure the closable behavior for individual tabs by setting the closable option in the specific tab item options.

RETURNS

Returns the current TabStripBuilder instance.

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

RETURNS

Returns the current TabStripBuilder instance.

Example

Razor
 
            @( Html.Kendo().TabStrip()
                        .Name("PanelBar")
                        .Collapsible(false)
            )
             

Collapsible()

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

RETURNS

Returns the current TabStripBuilder instance.

Example

Razor
 
            @( Html.Kendo().TabStrip()
                        .Name("PanelBar")
                        .Collapsible(false)
            )
             

Specifies whether the TabStrip should be keyboard navigatable.

Parameters

value - System.Boolean

The value for Navigatable

RETURNS

Returns the current TabStripBuilder instance.

Example

Razor
 
            @( Html.Kendo().TabStrip()
                        .Name("TabStrip")
                        .Navigatable(false)
            )
             

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.

RETURNS

Returns the current instance of TabStripBuilder .

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.

RETURNS

Returns the current instance of TabStripScrollableSettingsBuilder .

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

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");
                        })
                        .Sortable(true)
              )
             

Sortable()

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

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");
                        })
                        .Sortable(true)
              )
             

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

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");
                        })
                        .TabAlignment(TabStripTabAlignment.Left)
            )
             

TabPosition(Kendo.Mvc.UI.TabStripTabPosition)

The criterion operator type.

Parameters

value - TabStripTabPosition

The value for TabPosition

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");
                        })
                        .TabPosition(TabPosition.Left)
            )
             

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

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");
                        })
                        .Value("Test")
              )
             

Size(Kendo.Mvc.UI.ComponentSize)

Specifies the size of the component. Default is Medium.

Parameters

value - ComponentSize

The value for Size

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");
                        })
                        .Size(Size.Small)
            )
             

IconPosition(Kendo.Mvc.UI.IconPosition)

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

Parameters

value - IconPosition

The value for IconPosition

RETURNS

Returns the current TabStripBuilder instance.

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<TabStripEventBuilder>

The client events action.

RETURNS

Returns the current TabStripBuilder instance.

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

The name.

RETURNS

Returns the current instance.

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

Sets the name of the component.

Parameters

modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer

The name.

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 Kendo.Mvc.UI.Fluent.WidgetFactory.DeferredScripts(System.Boolean,System.Boolean)

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.