How to export Index column using DataTable TableTool plugin.
How to export Index column using DataTable TableTool plugin.
Manendra1982
Posts: 1Questions: 1Answers: 0
Hi I am using dataTables.tableTools.js for exporting DataTable columns. all columns are returning from database for displaying on DataTable including index column which display row numbers. I am generating row number under index column using jquery,when i export my datatable then its exporting all column with proper data.but its exporting index column without row numbers.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hello i am also have same issue.Can anyone help?
i too having same issue, generating serial number using this code
t.on('order.dt search.dt buttons.dt', function () {
t.column(0, {search:'applied', order:'applied', buttons:'applied'}).nodes().each( function (cell, i) {
cell.innerHTML = i+1;
});
}).draw();
When exporting serial number missing in exported file(excel or pdf or print or csv)
After days of tries i get this solution:
You need add this event also of what you mention.
Hi again, i find another better solution:
In the settings of table i have: