Load all pages on Print Preview ViewMode - Telerik.ReportViewer.Blazor

1 Answer 160 Views
.NET Core Report Viewer - Blazor Report Viewer - HTML5
Angga
Top achievements
Rank 1
Angga asked on 03 Apr 2023, 09:50 AM

Hi,

I understand there are two view modes: Interactive and Print Preview.

My question: How do I load all pages on print preview mode?

What I am getting at the moment is the ReportViewer (on Print Preview Mode) loads 2 first pages, and waits for the user to scroll down the ReportViewer before loading the next page (page 3, 4 and so on).

 

Thanks,

Angga

 

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 06 Apr 2023, 08:34 AM

Hello Angga,

You are right about the view modes and how the pages get displayed. We use lazy loading to display the pages to the user.

If you want the whole document to be loaded at once, you may navigate to the last page. For example, the user may click on the 'last page' in the viewer's menu - see Html5 Viewer's Toolbar.

You may trigger this also with code, by executing the command 'goToLastPage', for example, on the renderingEnd event:

$("#reportViewer1")
	.telerik_ReportViewer({
		//...
		viewMode: telerikReportViewer.ViewModes.PRINT_PREVIEW,
		//...
		renderingEnd: function (e, args) {
			e.data.sender.commands.goToLastPage.exec();
		}
	});

Regards,
Todor
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Tags
.NET Core Report Viewer - Blazor Report Viewer - HTML5
Asked by
Angga
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or