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

Javascript to print a Div in a rad window.

3 Answers 162 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Priya
Top achievements
Rank 1
Priya asked on 03 Nov 2011, 11:32 AM
i used window.print, but it prints only visible section  of the window not the whole content
I need to print complete div content on a btn click without opening a new preview window.

3 Answers, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 08 Nov 2011, 07:53 AM
Hello Priya,

In order to achieve the desired functionality, I suggest that you remove the display:none and visibility:hidden rules when the button is clicked.
Please note that implementing this is not related to the functionality of the RadControls and is out of the scope of our support service.

All the best,
Mira
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
Priya
Top achievements
Rank 1
answered on 08 Nov 2011, 07:58 AM
the controls are visible..

Visiblity here is in terms of window size.. 
content which is visible in the window is printed.. it doesnt prints the whole content 
0
Mira
Telerik team
answered on 10 Nov 2011, 03:34 PM
Hello Priya,

Please examine the Print RadGrid contents code library to see how the RadGrid / RadCalendar can be printed.
The same approach can be used for other controls as well.

I hope this helps.

Kind regards,
Mira
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
Tags
Grid
Asked by
Priya
Top achievements
Rank 1
Answers by
Mira
Telerik team
Priya
Top achievements
Rank 1
Share this question
or