Datatables.Buttons hide columns in printing and exporting to excel
Datatables.Buttons hide columns in printing and exporting to excel
How can i hide the last column in printing and exporting to excel only but appear in the normal viewing
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Take a look into the
buttons.exportData(), you can specify which columns to export with acolumn-selector, which takes anarrayof IDs or Indexes; or afunction, which iterates through the columns, and adding those whih you returntrueon; or ajQueryselector; and a few other types.Thanks a lot jLinux. it works for me
http://jsfiddle.net/andrew_safwat/cn1n060L/
Nice! Good job