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.
Unfortunately, activation email could not send to your email. Please try again.

ReportViewer parameters

Thread ID:

Created:

Updated:

Platform:

Replies:

132147 Aug 16,2017 12:52 PM Aug 22,2017 12:31 AM ASP.NET MVC 5
loading
Tags: ReportViewer
jaime
Asked On August 16, 2017 12:52 PM

Hi, I have a question there any way to hide onload the parameters values than appears below the toolbar in the reportviewer, I am using rdlc reports, thaks in advance

Yuvaraj Devarajan [Syncfusion]
Replied On August 17, 2017 03:36 AM

Hi Jaime, 

Thanks for contacting Syncfusion support. 

We can hide the parameter block for the report in ReportViewer container using toolbarSettings property as shown in below code example, 
 
<body style="overflow: hidden; position: static; margin: 0px; padding: 0px; width: 100%; height: 100%"> 
    <div style="width:100%; height:100%; position:absolute;"> 
        @(Html.EJ().ReportViewer("reportsample") 
        .ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Local) 
        .ReportServiceUrl(VirtualPathUtility.ToAbsolute("~/api/ReportApi")) 
        .ReportPath("~/App_Data/Product List.rdlc")   
        .ToolbarSettings(tb=>tb.Items(Syncfusion.JavaScript.ReportViewerEnums.Toolbaritems.All & ~Syncfusion.JavaScript.ReportViewerEnums.Toolbaritems.Parameters))               
        ) 
    </div> 

Please refer to the below UG documentation link for more detail, 

Regards, 
Yuvaraj D. 


jaime
Replied On August 18, 2017 05:49 PM

Thanks for your reply, works perfect, I using drillThrough, when I show the child report I hide the parameters block, now when you return using the toolbar button, how can you show again the parameters block?, thanks for your help and support.


Yuvaraj Devarajan [Syncfusion]
Replied On August 21, 2017 07:10 AM

Hi Jaime, 

Thanks for the update. 

In ReportViewer, “toolbarsetting” property helps to hide the parameter block in current report viewer control instance, we are using same report viewer instance to render the parent and child reports, due to this we can’t hide for parent and show in child report rendering using the toolbarsetting API. However, you can achieve your requirement by using all the parameter in parent report as visible and hidden for child reports.   

For RDL: In ReportBuilder, you can specify the parameter visibility as hidden in Report Parameter property dialog box as shown in below screenshot, 
 
 
 
For RDLC: Visual Studio RDLC designer doesn’t allow to set the parameter visibility as hidden in UI due to some RDLC compatibility. So, you can manually set the parameter visibility as hidden in RDLC definition file as shown in the below screenshot, 

 

Please refer the below MSDN link for more detail, 

Regards, 
Yuvaraj D. 


jaime
Replied On August 21, 2017 12:18 PM

Thanks a lot for your support,  this worked perfect for me!


Yuvaraj Devarajan [Syncfusion]
Replied On August 22, 2017 12:31 AM

Hi Jaime, 
 
Thanks for the update. We are happy to hear that your issue is resolved. 
 
Regards, 
Yuvaraj D. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;