We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to hide the report parameter pan.

Hi,

Is there a way to hide the ReportViewer's report parameter pan when loading the report? My code is bellow there.


 $(function () {
        $("#container").ejReportViewer(
            {
                reportServiceUrl: '/api/ReportApi',
                processingMode: ej.ReportViewer.ProcessingMode.Local ,
                reportPath: '~/ReportDocs/ItemCostReport.rdlc',
                dataSources: [{
                    value: data,
                    name: "rpt_ds_RecipeDetails"
                }]
                , parameters: [{
                    name: "CompName",
                    labels: ['CompName'],
                    values: ["abcdefg"],
                    nullable: false
                }, {
                        name: "CompAddr",
                        labels: ['CompAddr'],
                        values: ["kandy"],
                        nullable: false
                    }]
               

            });
    });


Thank you,
Kalum

1 Reply

MM Mageshyadav M Syncfusion Team November 30, 2018 12:56 AM

Hi Kalum, 
 
We can hide the parameter block using toolbarSettings. Please find the reference snippet to hide the parameter block, 
 
$("#viewer").ejReportViewer({ toolbarSettings:{ items: ej.ReportViewer.ToolbarItems.All & ~ej.ReportViewer.ToolbarItems.Parameters } }); 
 
Please find the help link reference for the same, 
 
 
Regards, 
Mageshyadav.M 


Loader.
Live Chat Icon For mobile
Up arrow icon