Kendo.Mvc.UI.Fluent.TabStripBuilder
Defines the fluent API for configuring the Kendo UI TabStrip
Methods
Animation(System.Boolean)
Configures the animation effects of the tabstrip.
Parameters
enable System.Boolean
Whether the component animation is enabled.
Example (ASPX)
<%= Html.Kendo().TabStrip()
.Name("PanelBar")
.Animation(false)
Animation(System.Action<Kendo.Mvc.UI.Fluent.PopupAnimationBuilder>)
Configures the animation effects of the tabstrip.
Parameters
animationAction System.Action<Kendo.Mvc.UI.Fluent.PopupAnimationBuilder>
The action that configures the animation.
Example (ASPX)
<%= Html.Kendo().TabStrip()
.Name("PanelBar")
.Animation(animation => animation.Open(config => config.Fade(FadeDirection.In)))
SelectedIndex(System.Int32)
Selects the item at the specified index.
Parameters
index System.Int32
The index.
Example (ASPX)
<%= Html.Kendo().TabStrip()
.Name("TabStrip")
.Items(items =>
{
items.Add().Text("First Item");
items.Add().Text("Second Item");
})
.SelectedIndex(1)
%>
ItemAction(System.Action<Kendo.Mvc.UI.TabStripItem>)
Callback for each item.
Parameters
action System.Action<Kendo.Mvc.UI.TabStripItem>
Action, which will be executed for each item.
Example (ASPX)
<%= 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 (ASPX)
<%= Html.Kendo().TabStrip()
.Name("TabStrip")
.HighlightPath(true)
%>
Items(System.Action<Kendo.Mvc.UI.Fluent.TabStripItemFactory>)
Defines the items in the tabstrip
Parameters
addAction System.Action<Kendo.Mvc.UI.Fluent.TabStripItemFactory>
The add action.
Example (ASPX)
<%= Html.Kendo().TabStrip()
.Name("TabStrip")
.Items(items =>
{
items.Add().Text("First Item");
items.Add().Text("Second Item");
})
%>
BindTo(System.Collections.Generic.IEnumerable<T1>,System.Action<Kendo.Mvc.UI.TabStripItem,T1>)
Binds the tabstrip to a list of objects
Parameters
dataSource System.Collections.Generic.IEnumerable<T1>
The data source.
itemDataBound System.Action<Kendo.Mvc.UI.TabStripItem,T1>
The action executed for every data bound item.
Example (ASPX)
<%= 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.
Navigatable(System.Boolean)
Specifies whether the TabStrip should be keyboard navigatable.
Parameters
value System.Boolean
The value for Navigatable
Scrollable(System.Action<Kendo.Mvc.UI.Fluent.TabStripScrollableSettingsBuilder>)
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<Kendo.Mvc.UI.Fluent.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.
TabPosition(Kendo.Mvc.UI.TabStripTabPosition)
The criterion operator type.
Parameters
value Kendo.Mvc.UI.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<Kendo.Mvc.UI.Fluent.TabStripEventBuilder>)
Configures the client-side events.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.TabStripEventBuilder>
The client events action.
Example (ASPX)
@(Html.Kendo().TabStrip()
.Name("TabStrip")
.Events(events => events
.Activate("onActivate")
)
)