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

Prevent WPF Reportviewer from Rerendering when Hidden

1 Answer 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Maurizio
Top achievements
Rank 2
Maurizio asked on 22 Nov 2013, 02:23 PM
Hi Telerik Team,

i have a WPF application with several Reportviewers,
each in a RadTabItem (inside an RadTabControl).

The Report in the active (visible) RadTabItem is rendered properly. However, when the user selects another RadTabItem
(so the ReportViewer is hidden) the ReportViewer loses its rendering. When the RadTabItem with the reportviewer inside is selected again,
(so the ReportViewer becomes visible again) the Report is rendered newly from the scratch.

This is very annoying because a) rendering takes some time and b) i render a reportbook, so the second time the ReportViewer renders the report, the position of the selected report is lost.

Is there any possibilty to prevent the ReportViewer from losing the rendering when hidden? Some kind of caching..

Best regards.

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 22 Nov 2013, 05:19 PM
Hi Thomas,

Try to set the WPF RadTabControl.IsContentPreserved property to true. Thus the WPF ReportViewer will not be unloaded when it is not visible(the selected tab is changed).

Let us know if you have any further questions.

Regards,
Stef
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

Tags
General Discussions
Asked by
Maurizio
Top achievements
Rank 2
Answers by
Stef
Telerik team
Share this question
or