TabPanelModel.ActiveTab Property
Gets the active tab in the Tab Panel.
Namespace: DevExpress.Blazor.Reporting.Models
Assembly: DevExpress.Blazor.v25.2.Viewer.dll
NuGet Package: DevExpress.Blazor.Viewer
Declaration
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:
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
@using DevExpress.Blazor.Reporting.Models
@*...*@
<DxButton Text="Custom Button" Click="OnClick"></DxButton>
<DxReportViewer @ref="reportViewer" >
</DxReportViewer>
@code{
DxReportViewer reportViewer { get; set; }
void OnClick()
{
if (reportViewer.TabPanelModel.ActiveTab.Id == "ReportViewer_Tabs_Search") {
// Your custom action.
};
}
}