Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenTabs

    RadzenTabs component.

    Inheritance
    object
    ComponentBase
    RadzenComponent
    RadzenTabs
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    RadzenComponent.OnMouseEnter()
    RadzenComponent.OnMouseLeave()
    RadzenComponent.OnContextMenu(MouseEventArgs)
    RadzenComponent.GetCssClass()
    RadzenComponent.GetId()
    RadzenComponent.Debounce(Func<Task>, int)
    RadzenComponent.RaiseContextMenu(MouseEventArgs)
    RadzenComponent.RaiseMouseEnter()
    RadzenComponent.RaiseMouseLeave()
    RadzenComponent.Dispose()
    RadzenComponent.Attributes
    RadzenComponent.Element
    RadzenComponent.MouseEnter
    RadzenComponent.MouseLeave
    RadzenComponent.ContextMenu
    RadzenComponent.Culture
    RadzenComponent.DefaultCulture
    RadzenComponent.Style
    RadzenComponent.Visible
    RadzenComponent.UniqueID
    RadzenComponent.JSRuntime
    RadzenComponent.IsJSRuntimeAvailable
    RadzenComponent.Reference
    RadzenComponent.CurrentStyle
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.StateHasChanged()
    ComponentBase.OnAfterRender(bool)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.DispatchExceptionAsync(Exception)
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenTabs : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender, 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>

    Constructors

    RadzenTabs()

    RadzenTabs component.

    Declaration
    public RadzenTabs()
    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
    [Parameter]
    public EventCallback<int> Change { get; set; }
    Property Value
    Type Description
    EventCallback<int>

    The change callback.

    RenderMode

    Gets or sets the render mode.

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

    The render mode.

    SelectedIndex

    Gets or sets the selected index.

    Declaration
    [Parameter]
    public int SelectedIndex { get; set; }
    Property Value
    Type Description
    int

    The selected index.

    SelectedIndexChanged

    Gets or sets the selected index changed callback.

    Declaration
    [Parameter]
    public EventCallback<int> SelectedIndexChanged { get; set; }
    Property Value
    Type Description
    EventCallback<int>

    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
    [Parameter]
    public TabPosition TabPosition { get; set; }
    Property Value
    Type Description
    TabPosition

    The tab position.

    Tabs

    Gets or sets the tabs.

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

    The tabs.

    Methods

    AddTab(RadzenTabsItem)

    Adds the tab.

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

    The tab.

    Returns
    Type Description
    Task

    BuildRenderTree(RenderTreeBuilder)

    RadzenTabs component.

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    GetComponentCssClass()

    Gets the component CSS class.

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

    OnAfterRenderAsync(bool)

    Called by the Blazor runtime.

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

    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 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
    bool
    Overrides
    ComponentBase.ShouldRender()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    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