TabPanelModel.ActivateTab(String) Method
Activates and expands the specified panel.
Namespace: DevExpress.Blazor.Reporting.Models
Assembly: DevExpress.Blazor.v25.2.Viewer.dll
NuGet Package: DevExpress.Blazor.Viewer
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| id | String | The panel ID. |
Remarks
The following code opens the Export Options panel when a user clicks a button:
Important
Customization options described in this example are available to owners of DevExpress ASP.NET & Blazor Subscription, DXperience, or Universal subscription (subscriptions that include DevExpress ASP.NET & Blazor UI Controls). The DevExpress Reporting Subscription does not support UI customization in Report Viewer or End-User Report Designer.
Refer to the following help topic for information on subscription options: Installation - Subscriptions that Include Reporting Components.
@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");
}
}
You can use predefined panel IDs declared in the TabId class:
@using DevExpress.Blazor.Reporting
@using DevExpress.Blazor.Reporting.Models
@*...*@
<DxButton Click="OnClick"></DxButton>
<DxReportViewer @ref="reportViewer" >
</DxReportViewer>
@code{
DxReportViewer reportViewer { get; set; }
void OnClick()
{
reportViewer.TabPanelModel.ActivateTab(TabId.ExportOptions);
}
}
For more information on panel IDs, review the following help topic: Tab Panel.