mah

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • in reply to: For those looking to print a jqGrid grid. #100283
    mah
    Participant

    I manage to solve the issue with the fixed footer today. Aparently was a matter of css. Im posting my solution maybe it will help others if they have similar issues. I was using jqueryui for the css of the jqgrid.

    I put this code inside PrintGrid(), right before the code removing the navigation divs:

    in reply to: For those looking to print a jqGrid grid. #100274
    mah
    Participant

    Hello!

    So still about #2, I got the footer to stay in the top of the printed page(as img below) by inserting

    $('#prt-container .ui-jqgrid-sdiv').after($('#prt-container .ui-jqgrid-bdiv'));

    Right before removing the navigation divs in the function PrintGrid.

    http://i.imgur.com/ot7dc.png

    But I still cant manage to put the footer at the end of the last line of the grid in the printing page.

    Everything I tried, the footer overlays the other rows in the 1st page of the printing page as I showed before. Cry

    in reply to: For those looking to print a jqGrid grid. #100266
    mah
    Participant

    Hi!

    Thanks for the response!

    #1 – I was calling setPrintGrid before loading the navgrid. Now I put the call after the navgrid(obviously lol) and it worked! :)

    #2 -Im posting the images. 1st image is the grid on the screen. It has groups and totals for each group. And then in the bottom is the global total that is fixed in the grid as a footer.

    2nd its the print of the grid with the fixed footer overlaying the other columns . Smile

    http://i.imgur.com/h5y6p.png

    http://i.imgur.com/Pmnyj.png

    in reply to: For those looking to print a jqGrid grid. #100208
    mah
    Participant

    nelsonm, tyvm for the code! A really nice solution for the printing problem.

    But Im having 2 issues:

Viewing 4 replies - 1 through 4 (of 4 total)

Stay connected with us in your favorite flavor!