Urgent Issue - Printing in 2.0

I tried to apply an old version 1.0 forum answer to 2.0 and get printing working. I used:

@media print
.aw-grid-control {
height: 900px;
width: auto;
in my styles. I found that a height of 850px works very well - the grid height extends when printing and the data displays. The problem is if I increase the height to 900 so the grid has to print past one page, then it does not print correctly (just the border of the grid displays - no data!).

People have tried to supply other methods of printing to me but all solutions so far are for very small sets of data (100 rows or less). That is not practical for me. If I can get this styles solution working - that would be ideal.
February 23,
February 26,
Maybe this one will work better -

@media print {

.aw-view-top {
    display: block!important;
    position: static!important;
    width: auto!important;
    height: auto!important;
    padding: 0px!important;

.aw-grid-row {
    width: auto!important;

.aw-selector-space {
    display: none!important;


It should work for AW.UI.Grid (but not for AW.Grid.Extended), virtual mode off, IE only, total column width < page width.
Alex (ActiveWidgets)
February 26,
unfortunately, I am using the extended grid and virtual mode is absolutely necessary due to the number of rows I am retrieving.

Any other ideas on how to tackle this? I have to deliver printing shortly.
February 26,
In this case you probably should do it on the server side and on the separate page, producing plain HTML table. Doing this with javascript would be very slow.
Alex (ActiveWidgets)
February 26,
that will involve rebuilding the entire grid and make it look like the AW Grid via HTML (I already had that and opted for AW for the virtual rendering and other cool features). Also, changes such as moving columns, hiding , sorting, filtering data are all done on the client. I want to be able to print that. It is a real issue to actually hit the server again to recreate a grid that has already been created. so is it technically not feasible to print the grid, then?
February 26,
If you mean 'using CSS only' - no, it is not possible for the extended grid and it is not possible when virtual mode is used.

In virtual mode the grid renders only visible rows. In order to print the entire content of the grid you have to create html for all grid rows. Which is equivalent to switching virtual mode off.

There are also several problems related to extended grid layout - it uses separate divs for left fixed area, central scrolling area and the right fixed area. As a result each row is split in three independent parts. It is not possible to synchronize relative positions of those parts when grid goes into print layout over several pages.

Basically printing the extended virtual grid with all data is not possible. You have to create another one (or, better, plain html table) just for printing. Either server-side or client-side.
Alex (ActiveWidgets)
February 26,
Hi Alex
but it not work with horizontal scrollbar. if there any way to print the horizontal srcoll bar.
Ravi Kumar
August 20,

This topic is archived.

See also:

Back to support forum