Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenTabs

    RadzenTabs component.

    Inheritance
    System.Object
    RadzenComponent
    RadzenTabs
    Implements
    IDisposable
    Inherited Members
    RadzenComponent.Attributes
    RadzenComponent.Element
    RadzenComponent.MouseEnter
    RadzenComponent.MouseLeave
    RadzenComponent.ContextMenu
    RadzenComponent.Culture
    RadzenComponent.DefaultCulture
    RadzenComponent.OnMouseEnter()
    RadzenComponent.OnMouseLeave()
    RadzenComponent.OnContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs)
    RadzenComponent.Style
    RadzenComponent.Visible
    RadzenComponent.GetCssClass()
    RadzenComponent.GetId()
    RadzenComponent.Debounce(Func<Task>, Int32)
    RadzenComponent.UniqueID
    RadzenComponent.JSRuntime
    RadzenComponent.IsJSRuntimeAvailable
    RadzenComponent.Reference
    RadzenComponent.RaiseContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs)
    RadzenComponent.RaiseMouseEnter()
    RadzenComponent.RaiseMouseLeave()
    RadzenComponent.Dispose()
    RadzenComponent.CurrentStyle
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenTabs : RadzenComponent, IDisposable
    Examples
    <RadzenTabs RenderMode="TabRenderMode.Client" Change=@(args => Console.WriteLine($"Selected index is: {args}"))>
        <Tabs>
            <RadzenTabsItem Text="Orders">
                Details for Orders
            </RadzenTabsItem>
            <RadzenTabsItem Text="Employees">
                Details for Employees
            </RadzenTabsItem>
        </Tabs>
    </RadzenTabs>

    Properties

    Change

    Gets or sets the change callback.

    Declaration
    public EventCallback<int> Change { get; set; }
    Property Value
    Type Description
    EventCallback<System.Int32>

    The change callback.

    RenderMode

    Gets or sets the render mode.

    Declaration
    public TabRenderMode RenderMode { get; set; }
    Property Value
    Type Description
    TabRenderMode

    The render mode.

    SelectedIndex

    Gets or sets the selected index.

    Declaration
    public int SelectedIndex { get; set; }
    Property Value
    Type Description
    System.Int32

    The selected index.

    SelectedIndexChanged

    Gets or sets the selected index changed callback.

    Declaration
    public EventCallback<int> SelectedIndexChanged { get; set; }
    Property Value
    Type Description
    EventCallback<System.Int32>

    The selected index changed callback.

    SelectedTab

    Gets the currently selected RadzenTabsItem based on the selectedIndex.

    Declaration
    public RadzenTabsItem SelectedTab { get; }
    Property Value
    Type Description
    RadzenTabsItem

    TabPosition

    Gets or sets the tab position.

    Declaration
    public TabPosition TabPosition { get; set; }
    Property Value
    Type Description
    TabPosition

    The tab position.

    Tabs

    Gets or sets the tabs.

    Declaration
    public RenderFragment Tabs { get; set; }
    Property Value
    Type Description
    RenderFragment

    The tabs.

    Methods

    AddTab(RadzenTabsItem)

    Adds the tab.

    Declaration
    public async Task AddTab(RadzenTabsItem tab)
    Parameters
    Type Name Description
    RadzenTabsItem tab

    The tab.

    Returns
    Type Description
    Task

    GetComponentCssClass()

    Gets the component CSS class.

    Declaration
    protected override string GetComponentCssClass()
    Returns
    Type Description
    System.String
    Overrides
    RadzenComponent.GetComponentCssClass()

    OnAfterRenderAsync(Boolean)

    Called by the Blazor runtime.

    Declaration
    protected override async Task OnAfterRenderAsync(bool firstRender)
    Parameters
    Type Name Description
    System.Boolean firstRender
    Returns
    Type Description
    Task
    Overrides
    RadzenComponent.OnAfterRenderAsync(Boolean)

    OnInitialized()

    Called by the Blazor runtime.

    Declaration
    protected override void OnInitialized()
    Overrides
    RadzenComponent.OnInitialized()

    Reload()

    Reloads this instance.

    Declaration
    public void Reload()

    RemoveItem(RadzenTabsItem)

    Removes the item.

    Declaration
    public void RemoveItem(RadzenTabsItem item)
    Parameters
    Type Name Description
    RadzenTabsItem item

    The item.

    SetParametersAsync(ParameterView)

    Called by the Blazor runtime when parameters are set.

    Declaration
    public override async Task SetParametersAsync(ParameterView parameters)
    Parameters
    Type Name Description
    ParameterView parameters

    The parameters.

    Returns
    Type Description
    Task
    Overrides
    RadzenComponent.SetParametersAsync(ParameterView)

    ShouldRender()

    Should render.

    Declaration
    protected override bool ShouldRender()
    Returns
    Type Description
    System.Boolean

    Implements

    IDisposable

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT