TableTools and FixedColumns

TableTools and FixedColumns

david33409david33409 Posts: 11Questions: 0Answers: 0
edited October 2012 in TableTools
I've tried for hours to get TableTools to work with FixedColumns and ColReorder without success. The CSV & PDF files are way off. When I hit Print, I only get the rows that are visible and not all rows.

Thank you for your assistance.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Please link us to a page showing the issue. Sounds like you might be using server-side processing?

    Allan
  • david.dlccdavid.dlcc Posts: 7Questions: 0Answers: 0
    edited February 2013
    In my case I use FixedColumns and TableTools together, and the Fixed columns are not shown in the Print View.

    I tryed passing the columns numbers to print:
    [code]
    'aButtons': [
    {
    'sExtends': 'print',
    'bShowAll': true,
    'mColumns': [0,1,2,3,4]
    }
    ]
    [/code]
    and doesn't work either. Although I saw I'm not sure "mColumns" is an option for print button.
  • david.dlccdavid.dlcc Posts: 7Questions: 0Answers: 0
    edited February 2013
    Live example:
    http://live.datatables.net/epuxem/9

    You can see, when you click on print (Imprimir) , the Fixed Columns are not shown.

    Modifiying line 1731 of TableTools.js to
    [code]this._fnPrintHideNodes( oSetDT.nTableWrapper );[/code]
    shows the whole table, but with dupplicated headers for non-fixed part of the table
  • david.dlccdavid.dlcc Posts: 7Questions: 0Answers: 0
    But PDF and Excel, buttons print whole table correctly.
This discussion has been closed.