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

Print Directly From RadGrid

7 Answers 332 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Debojyoti
Top achievements
Rank 1
Debojyoti asked on 09 Dec 2010, 07:01 AM
Hi,

I have a telerik rad grid with around 10 columns and 100's of data and filters grouping. We implemented the scrolling paging. I want to print the whole data in the grid to be printed directly from the printer. If we implement the it by the Client side event as explained in this thread http://www.telerik.com/community/forums/aspnet/grid/72051-radgrid-print.aspx
then it is screenprinting the grid. I want only the data of the grid to be printed in a tabular form. Is this possible?

7 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 09 Dec 2010, 07:40 AM
Hello,


I saw a code library which describes how to print the whole RadGrid excluding the surrounding controls/elements. I hope this would help you to print the grid only.
Print RadGrid contents


-Shinu.
0
Debojyoti
Top achievements
Rank 1
answered on 10 Dec 2010, 05:54 AM
No I have implemented this. But this does not solves my problem. This prints the whole grid with filters scrolling etc. I want only the data in a tabular format.
0
Daniel
Telerik team
answered on 10 Dec 2010, 10:10 AM
Hello Debojyoti,

Please test the attached project and let me know whether this helps.

Regards,
Daniel
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Debojyoti
Top achievements
Rank 1
answered on 10 Dec 2010, 10:59 AM
My problem is that I have around 27 columns . So I have horizontal scrollbar to view all the values. When I am doing print by this method only a part of the grid that is visible or the part of the table that fits in the page is getting printed and the rest is getting cut off. Same problem if i try to export the grid to PDF.
0
Daniel
Telerik team
answered on 15 Dec 2010, 10:12 PM
Hello Debojyoti,

You can fit 27 columns provided that you:
  • 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.

Best regards,
Daniel
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
July
Top achievements
Rank 2
answered on 15 Feb 2012, 03:50 PM
I tried this example But only print the current page.
I have PageSize = "5"
rregards
0
Daniel
Telerik team
answered on 20 Feb 2012, 01:10 PM
Hi July,

I just tried this demo and it is working as expected. What browser do you use?
Open your browser console and see if there are any JS errors.

Regards,
Daniel
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Grid
Asked by
Debojyoti
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Debojyoti
Top achievements
Rank 1
Daniel
Telerik team
July
Top achievements
Rank 2
Share this question
or