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

ReportBook filtering

0 Answers 25 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jara
Top achievements
Rank 1
Jara asked on 24 Aug 2010, 12:03 PM
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.

 

 

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?

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Jara
Top achievements
Rank 1
Share this question
or