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

Silverlight Report Viewer and CurrentSessionID

1 Answer 29 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aleksandar
Top achievements
Rank 1
Iron
Aleksandar asked on 14 Dec 2015, 04:36 PM
I'm using Silverlight and the MVVM pattern with my current project. I have a listbox where the currently selected item is bound to a single telerik report viewer control. When the user selects an item in the listbox, the selected item changes and triggers the report to be displayed in the report viewer control. This all works as expected. My issue is that when the user goes back to a previously selected report, the report viewer sends a new report request to the server rather than trying to retrieve the cached report. I did a little bit of digging and found the DataContext of the telerik report viewer is a ReportViewerModel that has a CurrentSessionID property. On a new report request the CurrentSessionID is set to null. I'd like to store the CurrentSessionID after a report is rendered. That way if a user goes back to a report that's already been run, I can set the CurrentSessionID. Unfortunately, the CurrentSessionID property is a private property and I can't set it's value. Is it possible to make CurrentSessionID a public property? How can I accomplish this?
 
 
 
 
 

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 17 Dec 2015, 03:05 PM
Hello Aleksandar,

The requested cache management is not available for the Reporting WCF service, which serve the content to the viewer. Feel free to log a feature request for reusing already rendered documents. Features are considered for implementation based on the demand for them


My recommendation is to use the HTML5 Viewer.
The HTML5 Viewer and Reporting REST service cache works in such way. Reports are processed, rendered and cached on the server. The service delivers only rendered documents, where consecutive requests for an already rendered report (with the same set of parameters' values) result in getting the cached copies of the report.

For more details about cache management, please check this help article.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Aleksandar
Top achievements
Rank 1
Iron
Answers by
Stef
Telerik team
Share this question
or