Class
TabStripTab

Defines a single tab for TelerikTabStrip. Configure the header via Title or HeaderTemplate and the panel content with Content or ChildContent; control behavior using Disabled and Visible. Identify tabs with Id (usable with ActiveTabId for programmatic activation).

Definition

Constructors

TabStripTab()

Declaration

cs-api-definition
public TabStripTab()

Properties

ChildContent

The contents of the tab.

Declaration

cs-api-definition
[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

Class

Applies custom CSS classes to this specific tab header for styling purposes. Use space-separated class names (e.g., "my-tab special-tab") to apply multiple styles to customize this tab's appearance.

Declaration

cs-api-definition
[Parameter]
public string Class { get; set; }

Property Value

string

Closeable

Specifies whether a close button is rendered.

Declaration

cs-api-definition
[Parameter]
public bool Closeable { get; set; }

Property Value

bool

Content

Defines the content displayed in the tab panel when this tab is active. Alternative to ChildContent - use either Content or ChildContent, but not both for the same tab.

Declaration

cs-api-definition
[Parameter]
public RenderFragment Content { get; set; }

Property Value

RenderFragment

Disabled

Prevents user interaction with this tab when set to true. Disabled tabs cannot be activated through clicks or keyboard navigation, and appear visually distinct to indicate their inactive state.

Declaration

cs-api-definition
[Parameter]
public bool Disabled { get; set; }

Property Value

bool

HeaderTemplate

Defines custom content for the tab header, replacing the default text-based Title display. Use this template to include icons, badges, or complex markup in the tab header while maintaining accessibility.

Declaration

cs-api-definition
[Parameter]
public RenderFragment HeaderTemplate { get; set; }

Property Value

RenderFragment

Id

Sets the unique identifier for this tab, used to associate the tab header with its content panel. Auto-generates a GUID if not provided, but setting a custom ID enables programmatic tab control via ActiveTabId.

Declaration

cs-api-definition
[Parameter]
public string Id { get; set; }

Property Value

string

Pinnable

Specifies whether a tab is pinnable. If pinnable is true the tab will render a unpin icon when Pinned is true and the end-user will be able to pin the tab using a context menu action.

Declaration

cs-api-definition
[Parameter]
public bool Pinnable { get; set; }

Property Value

bool

Pinned

Specifies whether a tab is pinned.

Declaration

cs-api-definition
[Parameter]
public bool Pinned { get; set; }

Property Value

bool

PinnedChanged

Gets or sets the callback that is invoked when the pinned state changes.

Declaration

cs-api-definition
[Parameter]
public EventCallback<bool> PinnedChanged { get; set; }

Property Value

EventCallback<bool>

Remarks

Use this property to respond to changes in the pinned state, such as updating UI or triggering related logic when the value changes.

Title

[Accessibility] Sets the text displayed in the tab header that users click to activate the tab. This title appears in the tab list and should be concise and descriptive of the tab's content.

Declaration

cs-api-definition
[Parameter]
public string Title { get; set; }

Property Value

string

Visible

Controls whether this tab appears in the TabStrip interface. Hidden tabs (false) are excluded from navigation and do not occupy space, while visible tabs (true, default) participate normally in the tab sequence.

Declaration

cs-api-definition
[Parameter]
public bool Visible { get; set; }

Property Value

bool

VisibleChanged

Fires when the Visible state of the tab changes, for example when the tab is closed, hidden, or shown programmatically. Use this event to react to visibility changes, such as updating application state or preventing certain tabs from being hidden.

Declaration

cs-api-definition
[Parameter]
public EventCallback<bool> VisibleChanged { get; set; }

Property Value

EventCallback<bool>

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

Dispose()

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

OnAfterRender(bool)

Declaration

cs-api-definition
protected override void OnAfterRender(bool firstRender)

Parameters

firstRender

bool

Overrides ComponentBase.OnAfterRender(bool)

OnParametersSetAsync()

Declaration

cs-api-definition
protected override Task OnParametersSetAsync()

Returns

Task

Overrides ComponentBase.OnParametersSetAsync()

Refresh()

Refresh the tab.

Declaration

cs-api-definition
public void Refresh()

SetParametersAsync(ParameterView)

Declaration

cs-api-definition
public override Task SetParametersAsync(ParameterView parameters)

Parameters

parameters

ParameterView

Returns

Task

Overrides ComponentBase.SetParametersAsync(ParameterView)