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

How to print a radgrid efficiently

10 Answers 271 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 27 Aug 2012, 12:31 PM
I have a radgrid with about 18 columns,  I've tried the basic code on this site that rips out all the html data and simply prints it, but it doesn't work well as in portrait, columns are cut off, and landscape fares only slightly better.

What would be the more efficient way to print out the radgrid (Ideally so it automatically formats the printout to fit all the data without cutting data out).?

Thanks in advance for your time.

10 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 27 Aug 2012, 08:57 PM
Hello,

Set AllowPaging="false" and then use the approach demonstrated in this code-library

Let me know if you need further assistance.

Greetings,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
John
Top achievements
Rank 1
answered on 28 Aug 2012, 12:08 PM
Allowpaging = false just shows all the rows instead of 100,  I don't need to print out all the rows, I'm fine with printing 100 at a time.  

I used the approach demonstrated in the code library (I believe I used the printradgrid updated) however that does not format the data so it fits in the page,  Columns are still being cut out because the table contains a lot of columns.

I want it so it's formatted and can be printed as portrait without the columns being cut out (the data automatically shrinking to fit everything on the page),  is this possible?
0
Pavlina
Telerik team
answered on 03 Sep 2012, 11:05 AM
Hi,

To fit 18 columns on the page you can try one of the following options:
  • switch the orientation to landscape
  • reduce the font size
  • use narrower fonts
  • decrease the page margins
  • increase the page size
  • PDF export

Some of these suggestions are also suitable when printing RadGrid.

Kind regards,

Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
John
Top achievements
Rank 1
answered on 05 Sep 2012, 11:33 AM
I thought there was a much easier way to print it,  similar to excel where you can simply  tell it to format it to fit all the columns.  Looking around the web it seemed like in the old version, radgridviewer or something of that sort was used, but for whatever reason was dropped?
  
0
Pavlina
Telerik team
answered on 10 Sep 2012, 09:15 AM
Hi,

RadGrid control for ASP.NET AJAX did not have radgridviewer or something like that in older version.  Can you please make sure that are not looking at RadGridView control for WPF or some other telerik control?

Greetings,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
John
Top achievements
Rank 1
answered on 10 Sep 2012, 04:04 PM
Hmmm, I guess that's possibly what I was looking at if I had to take a guess (I can't for the life of me find it).  I'm guessing there is nothing that would enable some type of good formatting currently for printing a radgrid ajax?
0
Pavlina
Telerik team
answered on 13 Sep 2012, 01:40 PM
Hi,

Currently such functionality for printing RadGrid is not available. Excuse us for the inconvenience caused. 


Kind regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Richard
Top achievements
Rank 1
answered on 29 Oct 2014, 05:50 PM
Another broken telerik support link!!!
http://www.telerik.com/500?aspxerrorpath=/support/code-library/print-radgrid-contents
0
Pavlina
Telerik team
answered on 03 Nov 2014, 12:23 PM
Hello Richard,

Could you confirm that you trying to access the code library through the following link?
http://www.telerik.com/support/code-library/print-radgrid-contents

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Richard
Top achievements
Rank 1
answered on 03 Nov 2014, 01:19 PM
That works now.
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
John
Top achievements
Rank 1
Richard
Top achievements
Rank 1
Share this question
or