tabletools

Export data from datatable with select element exports each option from the select element

时光毁灭记忆、已成空白 提交于 2019-11-30 14:25:40
I am try to add export buttons to my datatable, my table include select boxes inside, the problem is - it export all the options values included in the select box... A am using ajax to get results from the server then manipulate different data before render using dataSrc function like so: dataTableInit: function (columns_def) { var me = this; me.dataTable_obj = $('#leads_table').DataTable({ "pageLength": per_page, dom: 'Blfrtip', buttons: [ 'copy', 'csv', 'excel', 'pdf', 'print' ], "order": [order], "ajax": { url: route, type: method, data: filtering_data, "dataSrc": function (json) { return

TableTools plugin export buttons are not working

浪尽此生 提交于 2019-11-29 18:11:48
I am using TableTools for export functionality but it is not working. Only print buttin working and shows pop up and hide. I have got suggestions from this thread but did not given clear idea to me. Below is my implementation $('#example').dataTable({ "sDom": 'T<"clear">lfrtip', "oTableTools": { "sSwfPath": "copy_csv_xls_pdf.swf" } }); I have kept .swf file in the same folder where my server page is exist. Also I tried with "sDom": 'T<"clear"><"H"lfr>t<"F"ip>', . But not worked for me. Also I got suggestion that there is some security setting of the flash player which need to configure. Is

Datatables / TableTools: format data as text when exporting to Excel

一世执手 提交于 2019-11-29 07:19:25
I am using the Datatables TableTools plugin in order to provide an Export to Excel option for a table on my page. In general everything works as intended. My only issue is that I would need all the data resp. the columns in the resulting Excel table being formatted as text as otherwise I am losing data in some columns. Examples: - I have a column that has leading zeros (e.g. 0022 ) which only appears with the leading zeros cut off (e.g. 22 ) in the Excel file if this is not formatted as text. - Another column contains 19-digit account numbers (e.g. 1234567890123456789 ) which appears with the

jQuery dataTables - TableTools not working

折月煮酒 提交于 2019-11-26 21:02:28
问题 I'm using http://datatables.net/extensions/tabletools/ in my local-host ( wamp server ). It's working fine, but when I put the same code on my online server, it isn't working. I am using all latest version of datatables tableTools: { "sSwfPath": "https://datatables.net/release-datatables/extensions/TableTools/swf/copy_csv_xls_pdf.swf", "sRowSelect": "os", "sRowSelector": 'td:first-child', // "aButtons": [ "copy", "csv", "xls","pdf","print","select_all", "select_none" ] "aButtons": [ "copy",