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

Silverlight ReportViewer Occur Blank Data ?

1 Answer 103 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Wang
Top achievements
Rank 1
Wang asked on 04 Jan 2012, 10:42 AM
Hi Guys,
    I have made those reports have been shown by using the Silverlight ReportViewer on client-side.
    Furthermore,Those reports's parameters have been passed from the client-side silverlight to the server-side telerik reporting  reports. 
    
   Those reports have worked fine when those reports's parameters have beed selected all in first time.
   But,The report will occur blank data on the first page of the whole report when  I have selected some parameter in second time.
   
   Please see the code below
   *.xaml
      <telerik:ReportViewer x:Name="MyReportViewer" ReportServiceUri="../ReportService.svc"/>
   
   *.xaml.cs
       this.MyReportViewer.Report = null;
       this.MyReportViewer.Report = "ReportLibrary.ReportTest,ReportLibrary";
       this.MyReportViewer.RenderBegin += new RenderBeginEventHandler(ReportViewer_RenderBegin);
       ....
       ....// passed the report parameters
       args.ParameterValues["Plant"] = plants;
       args.ParameterValues["Areas"] = areas;
       args.ParameterValues["Units"] = units;
       args.ParameterValues["Items"] = items;

   ReportTest.cs [Telerik.Reporting.Report]
      private void ReportTest_ItemDataBinding(object sender, EventArgs e)
      {
          .....//got the report parameters
          .....//generated and executed the mdx query , returned cellset
          .....//Telerik Table Bind the cellset data
           this.tblTest.DataSource = cubeTest;
           //----------------------Fields Binding------------------------------------
          this.txtFChgOn.Value = "=IsNull(FormatDate(Fields.Time),' ')";
          this.txtFArea.Value = "=Fields.Area";
          this.txtFUnit.Value = "=Fields.Unit";
          this.txtFTagName.Value = "=Fields.TagName";
          this.txtFTagDesc.Value = "=Fields.TagComment"; 
      }


   I think,Does the report has cached report data in first time?
   How can I handle this situatio ?
   In case of the cached data , How to solve it?
  
   I am in urgent need of yours help.
  Thanks.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 09 Jan 2012, 09:15 AM
Hello Wang,

In order to improve Telerik Reporting performance in Q3 2011 release we have introduced processed report caching. Currently we process the report only once and when export or print operation is triggered, we use the processed report to directly render the report in the selected format. Thus the report events are only invoked the first time the report is rendered and report processing is omitted if the report parameters values are the same or report refresh is not triggered. You may find useful the Report Life Cycle help article.

If you still experience any difficulties we will appreciate if you open a support thread and send us sample project that reproduces the unexpected behavior to debug and review on our end.

All the best,
Peter
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

Tags
General Discussions
Asked by
Wang
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or