Skip to main content
All docs
V24.1

DxReportViewer.TabPanelModel Property

Provides access to the Tab Panel settings.

Namespace: DevExpress.Blazor.Reporting

Assembly: DevExpress.Blazor.Reporting.v24.1.Viewer.dll

NuGet Package: DevExpress.Blazor.Reporting.Viewer

Declaration

public TabPanelModel TabPanelModel { get; }

Property Value

Type Description
TabPanelModel

The Report Viewer Tab Panel settings.

Remarks

To hide DxReportViewer tab panels, access an individual TabPanelModel from the DxReportViewer.TabPanelModel collection and disable the TabPanelModel.Visible option.

The following code hides all the tabs - the Parameters, Search, Export Options, and Document Map tabs. When there are no visible tabs, the Tab Panel is also hidden.

@page "/tabpanel/"

@using DevExpress.Blazor.Reporting
@using DevExpress.XtraReports.UI
@using BlazorCustomization.PredefinedReports
@using DevExpress.Blazor.Reporting.Models

<div @ref="viewerComponent" style="width: 100%; height: 1000px;">
    <DxReportViewer @ref="reportViewer"
                    Report="Report" />
</div>

@code {
    DxReportViewer reportViewer;
    XtraReport Report = new TableReport();
    private ElementReference viewerComponent;

    protected override void OnAfterRender(bool firstRender) {
        if(firstRender) {
      reportViewer.TabPanelModel[TabContentKind.Parameters].Visible = false;
      reportViewer.TabPanelModel[TabContentKind.Search].Visible = false;
      reportViewer.TabPanelModel[TabContentKind.ExportOptions].Visible = false;
      reportViewer.TabPanelModel[TabContentKind.DocumentMap].Visible = false;    }
    base.OnAfterRender(firstRender);
}

}
See Also