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

Column headers print offset when a scroll bar is present

1 Answer 25 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Amit
Top achievements
Rank 1
Amit asked on 09 Sep 2008, 03:14 PM
I am having an issue (IE and FireFox) that when you print (or print preview), if there is a scroll bar on the grid, the column headers are spaced differently from the columns. 

If there is no scrollbar, it works just fine.

Any ideas?

Thanks,
Amit

1 Answer, 1 is accepted

Sort by
0
Nikita Gourme
Top achievements
Rank 1
answered on 12 Sep 2008, 08:07 AM
How about disabling the scrolling for the grid div before printing the grid? Thus you will avoid the unwanted side effect. Try to get reference to the grid data div with document.getElementById or $get methodand set its overflow attribute to hidden.

Nikita
Tags
Grid
Asked by
Amit
Top achievements
Rank 1
Answers by
Nikita Gourme
Top achievements
Rank 1
Share this question
or