Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxFormLayoutTabPages.ActiveTabIndexChanged Event

Occurs when the active tabbed layout item is changed.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public EventCallback<int> ActiveTabIndexChanged { get; set; }

#Parameters

Type Description
Int32

The index of the newly selected item.

#Remarks

Use the ActiveTabIndexChanged event to respond to a change of the active tabbed layout item’s index.

Razor
<DxFormLayout>
    <DxFormLayoutTabPages ActiveTabIndex="@ActiveTabIndex" ActiveTabIndexChanged="OnActiveTabIndexChanged">
        <DxFormLayoutTabPage Caption="Personal Information">
            @* ... *@
        </DxFormLayoutTabPage>
        <DxFormLayoutTabPage Caption="Work Information">
            @* ... *@
        </DxFormLayoutTabPage>
    </DxFormLayoutTabPages>
</DxFormLayout>

@code {
    int ActiveTabIndex { get; set; } = 1;
    void OnActiveTabIndexChanged(int activeTabIndex) {
        ActiveTabIndex = activeTabIndex;
    }
}

Run Demo: Form Layout - Tabbed Groups

See Also