Removing rows, reset numbering, printing

Removing rows, reset numbering, printing

boudgaboudga Posts: 19Questions: 4Answers: 0
edited February 2010 in TableTools
I have a seemingly difficult task to achieve and wanted to see what you folks can recommend. My table contains fixed header and footer data. There is a column in my table that requires sequential numbering with the sum of rows between the header and footer printed in the footer. What I need to be able to do is to select and remove certain rows and the sequentially numbered rows re-sequence themselves and the sum resets to the correct row count. Then when I hit the "Save as CSV" in TableTools it prints the table as it was changed.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    So you want something a little like this: http://datatables.net/examples/api/counter_column.html , combined with this: http://datatables.net/examples/advanced_init/footer_callback.html and TableTools? What happens when you try it... It should work! Although the column index example will (I think) need to be changed to use fnUpdate rather than writing to the DOM.

    Allan
This discussion has been closed.