I have create reportBook, which is bound to reportViewer at Silverlight applications.
Also, create multivalue report parameter (param1), which can take values (for example A, B, C, D) and have four reports (ReportA, ReportB, ReportC, ReportD);
in the reportBook, I want to do some reports filtration.
For example:
If param1.value equals A and B, I want add to reportBook only ReportA and ReportB.
I did filtration in ReportBook constructor.
But when I change param1 value and press Preview button nothing changes.
Also, create multivalue report parameter (param1), which can take values (for example A, B, C, D) and have four reports (ReportA, ReportB, ReportC, ReportD);
in the reportBook, I want to do some reports filtration.
For example:
If param1.value equals A and B, I want add to reportBook only ReportA and ReportB.
I did filtration in ReportBook constructor.
But when I change param1 value and press Preview button nothing changes.
public partial class rpt_ProcesoReportBook : Telerik.Reporting.ReportBook
{
public rpt_ProcesoReportBook()
{
InitializeComponent();
this.Report.Add(new titleReport() );
//// filtration
IList
list = (IList)this.Reports[0].ReportParameters["param1"].Value;
if (list.Contains("A"))
{
this.Reports.Add(new ReportA() );
}
if (list.Contains("B"))
{
this.Reports.Add(new ReportB() );
}
........
.........
}
}
Maybe someone knows how this can be done?