This is a migrated thread and some comments may be shown as answers.

Hide subreports based on selection criteria from website

1 Answer 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steve LaForge
Top achievements
Rank 1
Steve LaForge asked on 04 Feb 2013, 06:13 PM
I have a website that includes a report with multiple subreports.  I have to add the functionality that the user can choose which subreports they can/cannot see.  For example, the user may choose to only include reports 1,3 & 5, but not 2 & 4, or any of the rest.  I will probably use some sort of list control to allow the user to select the subreports that they want included.

I have a reportviewer defined in my HTML:

<telerik:ReportViewer ID="ReportViewer1" runat="server" Height="500px" Width="100%">
                    <typereportsource typename="ETRrpts.IndividualSummary, ETRrpts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"></typereportsource>
                </telerik:ReportViewer>

So what is the optimal way for me to identify, show and/or hide the subreports based on the user's selection?

Thank you!

1 Answer, 1 is accepted

Sort by
0
Hadib Ahmabi
Top achievements
Rank 1
answered on 07 Feb 2013, 08:37 AM
Use bool Report Parameter (multi-value) and bind the visibility of the subReport items to the parameter values. Or you can always use multiple parameters (if the number of sub-reports is fixed). 
Tags
General Discussions
Asked by
Steve LaForge
Top achievements
Rank 1
Answers by
Hadib Ahmabi
Top achievements
Rank 1
Share this question
or