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.ActivateTab(String) Method

Activates and expands the specified panel.

Namespace: DevExpress.Blazor.Reporting.Models

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

NuGet Package: DevExpress.Blazor.Viewer

#Declaration

public void ActivateTab(
    string id
)

#Parameters

Name Type Description
id String

The panel ID.

#Remarks

The following code opens the Export Options panel when a user clicks a button:

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

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

@code{
    DxReportViewer reportViewer { get; set; }

    void OnClick()
    {
        reportViewer.TabPanelModel.ActivateTab("ReportViewer_Tabs_ExportOptions");
    }
}

For more information on panel IDs, review the following help topic: Tab Panel - Report Viewer for Blazor.

See Also