How to change value of columns in ExportOptions

How to change value of columns in ExportOptions

prox108prox108 Posts: 18Questions: 9Answers: 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?

Answers

Sign In or Register to comment.