Adsense
Popular Posts
- Install APXS in Redhat Linux
- MySQL workbench -"Could not decrypt password cache"
- Transfer modules between sites
- JavaScript, remove trailing insignificant zeros after toFixed function
- Set Windows path command line
- datatable order by nunmeric
- MySQL date created and date modified
- super(props) in React
- PHP, dump varailbes in a format way
- React: connect(mapStateToProps, mapDispatchToProps)
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