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
- add comment to table columns in phpMyAdmin
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