Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82411

How to change value of columns in ExportOptions

$
0
0

Hi guys, I created a datatable at the start wich has a propiety called ExportOptions. It defines wich column are export it when you click in the Excel Button inside the datable.

'buttons': [ { extend: 'excel', title: 'Reporte órdenes Solicitados', exportOptions: { columns: [2, 3, 4, 6, 7, 8, 9,/* 10,*/ 11, 12, 13, 14, 15, 16, 17, 18, 19], } } ]

Unfortunully I neeed to change wich values are export after its first inicialization, like, if you select a button 1 only when you click the excel button the columns 1 and 3, button 2 4 and 5.

Do you know I way to change its values after inicialization?


Viewing all articles
Browse latest Browse all 82411

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>