Skip to main content
All docs
V24.2

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

TabPanelModel.ActiveTab Property

Gets the active tab in the Tab Panel.

Namespace: DevExpress.Blazor.Reporting.Models

Assembly: DevExpress.Blazor.v24.2.Viewer.dll

NuGet Package: DevExpress.Blazor.Viewer

#Declaration

public TabModel ActiveTab { get; }

#Property Value

Type Description
TabModel

An object that describes and identifies a tab in the Tab Panel.

#Remarks

The following code performs a custom action when the Search tab panel is active:

razor
@using DevExpress.Blazor.Reporting
@using DevExpress.Blazor.Reporting.Models
@*...*@
<DxButton Click="OnClick"></DxButton>

<DxReportViewer @ref="reportViewer" >
</DxReportViewer>

@code{
    DxReportViewer reportViewer { get; set; }

    void OnClick()
    {
        if (reportViewer.TabPanelModel.ActiveTab.ContentModel is SearchModel) {
            // Your custom action.
        };
    }
}
See Also