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)
Wednesday, February 6, 2019
DataTable export excel messup when search when colums containing select, input and editable div
I have a table containing select, input and editable div in columns.
I have scripts to make export to EXCEL correctly in DataTable when not using search box.
When using search box, exporting to EXCEL producing wrong value.
I can not find a solution. Temporarily when in search mode, I hid the EXCEL button
as following:
$('input[type="search"]').keyup(function(){
var search = $(this).val();
if(search.trim()=='')
$(".dt-buttons").show();
else
$(".dt-buttons").hide();
});
Labels:
datatable
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment