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

Implements ITab.ChildContent

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

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

Implements ITab.Content

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

Implements ITab.Disabled

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

Implements ITab.HeaderTemplate

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

Implements ITab.Id

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

Implements ITab.Title

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

Implements ITab.Visible

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)

OnInitialized()

Declaration

cs-api-definition
protected override void OnInitialized()

Overrides ComponentBase.OnInitialized()

OnParametersSetAsync()

Declaration

cs-api-definition
protected override Task OnParametersSetAsync()

Returns

Task

Overrides ComponentBase.OnParametersSetAsync()

Refresh()

Forces the tab to re-render its content and update its visual state. Call this method when tab data changes externally and automatic change detection is insufficient. Useful for refreshing dynamic content or applying style changes that require a full render cycle.

Declaration

cs-api-definition
public void Refresh()

Implements ITab.Refresh()

SetParametersAsync(ParameterView)

Declaration

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

Parameters

parameters

ParameterView

Returns

Task

Overrides ComponentBase.SetParametersAsync(ParameterView)