Am using download button for csv,excel and print. Currently it downloading data for all the rows and columns.
Can we restrict to download only for visble columns (colvs--hide some columns).
The problem i have is it printing filtered values for each column for first row.
am using 2 rows for header, one for column name and another for filter.
Sounds like you need to use orderCellsTop. This will tell Datatbles which header row to apply the order listeners (so they may move) plus I believe it will control which header is exported.
Answers
The example is working.
https://datatables.net/extensions/buttons/examples/print/columns
What do you have that's different?
The problem i have is it printing filtered values for each column for first row.
am using 2 rows for header, one for column name and another for filter.
Sounds like you need to use
orderCellsTop
. This will tell Datatbles which header row to apply the order listeners (so they may move) plus I believe it will control which header is exported.Kevin
Thanks, it fixed for me by using footer with following logic.
https://jsfiddle.net/yashsoni789/ehhfsrfq/760/
Appreciate your response.
Thanks
Soma