TableTools Download Plugin

TableTools Download Plugin

mclovinmclovin Posts: 3Questions: 0Answers: 0
edited March 2014 in TableTools
I am currently using the TableTools plugin download (get only). I am using the same server side code for the download as outlined here: http://datatables.net/forums/discussion/7757/tabletools-csvexcel-to-get-whole-table-with-serverside/p1

My challenge is that I am using the ColVis and ColReorder extras as well. When I have a table displayed, I want to serverside program to process it for the csv just like it is shown on the screen. (For example, I may reorder a column and hide 2 columns and I want my csv to reflect this) Is this possible?

thanks,
Shawn

Replies

  • mclovinmclovin Posts: 3Questions: 0Answers: 0
    Anyone? This is critical for me.
  • allanallan Posts: 63,678Questions: 1Answers: 10,497 Site admin
    You would need to have the request also sent the information about the column order and the visibility settings. Simply doing `$('#myTable thead th')` will get you the cells in the head, then create an array of their values and sent it to the server so it can process them.

    Allan
  • mclovinmclovin Posts: 3Questions: 0Answers: 0
    Thanks Allan, I will try that...and not that you don't already know, but incredible job on Datatables!
This discussion has been closed.