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

print frozen column

2 Answers 113 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bertha
Top achievements
Rank 1
Bertha asked on 05 Jan 2015, 07:57 PM
My kendo grid has first column as frozen. When I use the example in kendo to print, the first column is off.

http://docs.telerik.com/kendo-ui/web/grid/walkthrough#printing-the-grid

How can I print the grid?  Also, can I change the page to landscape when printing in IE?  Thanks.

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 07 Jan 2015, 03:02 PM
Hello,

Printing frozen columns is likely to produce misaligned columns or rows, or a broken overall layout. In such cases it is advisable to use a separate print-friendly page with no frozen columns.

Regards,
Dimo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Bertha
Top achievements
Rank 1
answered on 09 Jan 2015, 08:28 PM
In case someone want to know, I tested and found I just need to change 2 lines to make the format aligned.

In style sheet, add k-grid-content-locked

'.k-grid, .k-grid-content, .k-grid-content-locked { height: auto !important; }' +

In printableContent, change thead to thead[0]:

.children('tbody').before(thead[0])
Tags
Grid
Asked by
Bertha
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Bertha
Top achievements
Rank 1
Share this question
or