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

Problem in Printing Grid data

2 Answers 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ram
Top achievements
Rank 1
Ram asked on 24 Mar 2009, 06:06 PM
Hi,
My requirement is to print the radGrid data only and my grid is having horizontal scroll bar. I am using following script to print

function CallPrint(strid)
    {
     var prtContent = document.getElementById(strid);
     var WinPrint = window.open('','','letf=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0');
     WinPrint.document.write(prtContent.innerHTML);
     WinPrint.document.close();
     WinPrint.focus();
     WinPrint.print();
     WinPrint.close();
     prtContent.innerHTML=strOldOne;
     return false;
    }

and on print button client click I am calling the following function

OnClientClick="javascript:return CallPrint('printGrid');"

where printGrid is Div id which contains the grid.

Now my problem is I am able to print only that data which I can see initially (not scrolling) on browser.
I am unable to print the whole data .

what might be the solution for this, is radgrid is having any print functionality ?

Thanks,




2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 25 Mar 2009, 04:16 AM
Hi Ram,

As far as I know this is not possible with RadGrid. Instead, you can use the exporting functionality and print the Grid from Word or Excel.
Grid Export

Regards
Shinu
0
Ram
Top achievements
Rank 1
answered on 25 Mar 2009, 03:12 PM
I don't want to export the data, is there any other way to do this,
If yes can you please suggest me hoe to achieve this.
Tags
Grid
Asked by
Ram
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Ram
Top achievements
Rank 1
Share this question
or