aoColumns.nTf not set when Footer has a different number of cells than the header

aoColumns.nTf not set when Footer has a different number of cells than the header

severinseverin Posts: 11Questions: 0Answers: 0
edited February 2012 in Bug reports
Hi,

while trying to use TableTools to export my datatTable i stumbled onto the following behaviour: When the footer-columns are combined using cellspan and the header-columns are not, the property ntf of the column in the aoColumns-Object is not set. This causes a problem with exporting the Footer using TableTools, since this property is checked while exporting the footer. (dt1.9.0, TT 2.0.2)

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Yup certainly a bug this one, but not 100% sure how to fix it... The trouble is that there is no way to represent the colspan in the exported CSV files so I guess the question is, what is the expected behaviour?

    Allan
  • severinseverin Posts: 11Questions: 0Answers: 0
    I see the problem. My personal preference would be to put the content in one cell and then fill up with empty cells. this footer:
    [code]

    Text1
    Text2
    Text 3


    [/code]
    would result in the following csv:

    'Text1','','Text2','Text3','',''

    This way sums in colums should stay in the right column, which i gather would be the most important thing to look for.
This discussion has been closed.