Buttons Excel Export and Search Headers not working
Buttons Excel Export and Search Headers not working
acctsw11
Posts: 6Questions: 2Answers: 0
Hi,
I can't get Button's Excel export to work with search in header rows. I am getting the error message:
Uncaught TypeError: Cannot read properties of undefined (reading 'length')
at buttons.html5.min.js:8:21584
at _Api.action (buttons.html5.min.js:8:21899)
at run (dataTables.buttons.js:807:19)
at dataTables.buttons.js:822:7
Please see test case: https://live.datatables.net/kitekage/1/edit
Thank you very much!
Regards, Stu
Answers
Hi,
Upon further research it appears that in order for the button's Excel download to work, the controls cannot be dynamically created. Here is my fix: