Adsense
Popular Posts
- Code update from PHP 7.4 to PHP 8.1 - PhpSpreadsheet
- MySQL workbench -"Could not decrypt password cache"
- Code update from PHP 7.4 to PHP 8.1 - Worksheet/Iterator.php
- Rendering HTML tags inside textarea
- axios handle blob type data
- Unix Utils and wget in Windows
- increase mysql query speed
- Setup vi syntax for PHP
- Get WAMP running on EC2
- EXCEL return to the next line in the same cell
Thursday, January 3, 2019
Datatable export to excel bug not completly updated according to sorting
When I click the header column to sort in a table using DataTable,
the export excel is only half columns correct. This is due to that my columns have
input, select and editable div. If all columns are text, the export after sorting is fine.
I can not find a solution. The temporarily solution is always to export the original
sorting, i.e not export the current view after sorting.
code
modifier: { order: 'index' },
Example:
extend: 'excel',
exportOptions: {
columns: ':visible',
modifier: { order: 'index' },
},
Labels:
datatable
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment