Declined
Last Updated: 23 Mar 2018 14:45 by ADMIN
Aleksandar
Created on: 25 Jan 2016 19:31
Type: Feature Request
1
Set CurrentSessionID for previously rendered reports in Silverlight report viewer
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 comment
ADMIN
Milen | Product Manager @DX
Posted on: 23 Mar 2018 14:45
The Silverlight report viewer control is not actively developed anymore. Please use the HTML5 based report viewer of choice. They support rendered report caching.