Column Order in TableTools Export
Column Order in TableTools Export
acald295
Posts: 1Questions: 0Answers: 0
I was wondering if anyone has found a way to customize the order that the Export option(s) in TableTools (v2.2.0) works or perhaps if something like this would be implemented in a future version of TableTools.
For example, when setting the following:
"mColumns": [0,1,2,3,7,8,9]
The export will display columns like 0,1,2,3,7,8,9
when setting as
"mColumns": [2,3,7,8,9,0,1]
The export will still continue to display columns like 0,1,2,3,7,8,9 (rather than the desired 2,3,7,8,9,0,1)
Live Example: http://live.datatables.net/bohilic/1/
Currently using:
DataTables 1.9.4
TableTools 2.2.0
jQuery 1.10.2
Is there any way to customize this to export the data in a specified order or will it only be possible by reordering the data that gets put in to the DataTables object?
For example, when setting the following:
"mColumns": [0,1,2,3,7,8,9]
The export will display columns like 0,1,2,3,7,8,9
when setting as
"mColumns": [2,3,7,8,9,0,1]
The export will still continue to display columns like 0,1,2,3,7,8,9 (rather than the desired 2,3,7,8,9,0,1)
Live Example: http://live.datatables.net/bohilic/1/
Currently using:
DataTables 1.9.4
TableTools 2.2.0
jQuery 1.10.2
Is there any way to customize this to export the data in a specified order or will it only be possible by reordering the data that gets put in to the DataTables object?
This discussion has been closed.