Completed
Last Updated: 19 Dec 2024 16:04 by ADMIN
Release 2025 Q1
Gabor
Created on: 18 Nov 2024 12:25
Type: Bug Report
7
The option 'parametersAreaVisible' of the HTML5 Report Viewer is not respected

Even though I set "parametersAreaVisible" to false, the parameter area is still visible. A bit of tweaking.

Let me make a change request in the telerikReportViewer-18.3.24.1112.js file:

function showParametersAreaIfNecessary(params) {
            parametersAreaNecessary = hasVisibleParameters(params) || !controller.isReportAutoRun();
            showParametersArea(parametersAreaVisible && parametersAreaNecessary);
        }

3 comments
John
Posted on: 05 Dec 2024 15:33
Tried with adding [ParameterEditors]="null". It hides it but shows a quick little error before it goes away.
 

<tr-viewer
    #reportViewer    [containerStyle]="viewerContainerStyle"

    [serviceUrl]="serviceUrl"

    [viewMode]="'INTERACTIVE'"
    [scaleMode]="'SPECIFIC'"
    [sendEmail]="{
      enabled: true,
      from: fromAddress,
      to: toAddress,
      subject: reportName
    }"
    [scale]="1.0"
    [ready]="ready"
    [viewerToolTipOpening]="viewerToolTipOpening"
    [enableAccessibility]="false"
    [parametersAreaVisible]="false"
    [parameterEditors]="null"
    [error]="reportError"
  >
ADMIN
Dimitar
Posted on: 27 Nov 2024 09:23

Hello Gary,

The workaround that may be used is to manually hide the section through the ready() event of the HTML5-based Report Viewers, for example:

       $("#reportViewer1")
         .telerik_ReportViewer({
                serviceUrl: "/api/reports/",
                reportSource: {
                    report: "Report1.trdp"
                },
               ready: function () {
                    $(".trv-parameters-area").hide()
                    $(".k-splitbar-draggable-horizontal").hide()
                }
            });

I hope that this example will help. Let me know if I can assist with anything else.

Regards,
Dimitar
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Gary Michaels
Posted on: 20 Nov 2024 14:23

I have just discovered this problem. What can we do?

Is there a workaround?

Thanks