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

Paging with an ASP.NET ReportViewer?

3 Answers 465 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 26 Sep 2011, 08:37 PM
I have inserted a reportviewer on my page and everything works fine except of course when a report returns hundreds or thousands of results then the report takes a long time to render if not outright crashes the browser.

I cannot find anything that mentions how to enable paging on a reportviewer, I have found help on setting the numbering style but that does me little good if I can t set a page size like on a RadGrid.

Can someone please point me in the right direction to figure out how to get the viewer to page?

Any help is appreciated.
James

Edit:
I should add that I am not using a static data source, I use the NeedDataSource event and just bind an empty table to a DataTable.

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 29 Sep 2011, 04:29 PM
Hi James,

Generally the web report viewer and Visual Studio HTML Preview are utilizing HTML Rendering. In this line of thoughts due to the fact that HTML is not a page oriented format, all report items placed in a single section are rendered in a single page. Thus report items/sections are not split. The viewers that use the page orientated image rendering are Silverlight report viewer, Windows forms report viewer and WPF report viewer. If you have to use web report viewer and you want to split the your table data in multiple pages our suggestion is to avoid the Table item and instead utilize table like layout elaborated in the Dynamic Layout (Dock and Anchor) help article. 

All the best,
Peter
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Isaac
Top achievements
Rank 1
answered on 18 Nov 2011, 04:57 PM
Hi. I am working on a project that has many reports. We just switched over to using the Telerik reports over Crystal Reports and SSRS. We have many reports where there could be 10 - 100 thousand records returned in the result set. Is there any way to page through the data that is loaded into the datasource for a Table? We really need this functionality. Also, why are the Paging buttons in the asp.net Report Viewer if there is only one page?

Sincerely, 

Isaac Koss.
0
Peter
Telerik team
answered on 21 Nov 2011, 05:50 PM
Hello Isaac,

In Q3 2011 we have introduced new Interactive view as default view and Print preview mode for all of the report viewers. The interactive view mode improves the user experience. It utilizes a ground-breaking dedicated pagination algorithm meant for screen viewing and user interaction, which results in less resource consumption and much faster rendering.
Still you can set the report viewers print view as default mode to force page breaks based on the page settings. For more information check out the Page Layout and Rendering help articles.

Up to the page buttons by design we only disable the page buttons if they are unnecessary. This way we keep the report viewer layout persistent.

All the best,
Peter
the Telerik team

Q2’11 SP1 of Telerik Reporting is available for download (see what's new). Get it today.

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