Questions tagged [tabletools]

TableTools is a plug-in for the DataTables HTML table enhancer, which adds a highly customisable button toolbar to a DataTable.

TableTools is a plug-in for the DataTables HTML table enhancer, which adds a highly customisable button toolbar to a DataTable.

Key features include:

  • Copy to clipboard
  • Save table data as CSV, XLS or PDF files
  • Print view for clean printing
  • Row selection options
  • Easy use predefined buttons
  • Simple customization of buttons
  • Well defined API for advanced control

Initialising TableTools with DataTables:

/*
 * Example initialisation
 */
$(document).ready( function () {
    $('#example').dataTable( {
        "sDom": 'T<"clear">lfrtip',
        "oTableTools": {
            "sSwfPath": "/swf/copy_csv_xls_pdf.swf"
        }
    } );
} );
173 questions
3
votes
1 answer

jquery datatable(TableTool) custom buttons calling events

Would be possible to use custom buttons in Jquery datatable using TableTool for custom events like saving , editing or deleting data. I do not really understand how to override the integrated buttons var oTable = $('#unis').dataTable({ …
fefe
  • 8,755
  • 27
  • 104
  • 180
3
votes
2 answers

DataTables TableTools plugin - How to configure sSwfPath path in Codeigniter?

A re-post of my previous question as I am not getting any satisfactory answer The problem is as follows : I have given my code in JSBin http://live.datatables.net/aqowib/2 for which I am not able to link to the sSwfPath properly. I am using…
NealCaffrey
  • 273
  • 3
  • 10
  • 22
3
votes
2 answers

Can you change css class precedence at loadtime?

I'm working with jQuery datatables and oTableTools aButtons. I'm doing this: oTableTools: { aButtons: [ { sExtends: 'text', sButtonText: 'Add +', fnClick: function ( nButton, oConfig, oFlash )…
DiMono
  • 3,308
  • 2
  • 19
  • 40
2
votes
0 answers

jQuery dataTables - undefined columns values with TableTools

I'm dealing with exporting to CSV from Datatables, I get undefined values for all columns. Any ideas?. I'm using stable version of DT and TT. I've already tried with nighty version from Github (Datatables) with no success. var oTable =…
Felix
  • 3,058
  • 6
  • 43
  • 53
2
votes
0 answers

DataTable Modal TableTool Buttons Not Working

In the past, I have successfully created DataTables that display dynamic data. I have also added the TableTools plug-in to be able to export the data to CSV, Excel, Copy/Pase, etc. However, when I add a bootstrap modaldialog box and place the table…
rak11
  • 123
  • 1
  • 15
2
votes
1 answer

How to replace button with icon in table tools in data table?

I have a download button and when the download button is clicked the options will be displayed. But I have to replace this with hamburger icon. How can I achieve that When I click the hamburger icon, the options should be displayed : The download…
Priya
  • 591
  • 1
  • 8
  • 23
2
votes
2 answers

Exporting jQuery datatable data with cell colors

I am exporting data from jQuery datatable using TableTools in different formats like excel, pdf. Some cells have a different background color in datatable. But those colors are not displaying in exported excel or pdf. Can anyone tell me, how to…
ved
  • 96
  • 3
  • 10
2
votes
2 answers

Remove from column on XLS export

I have a working jQuery DataTable (https://www.datatables.net/) using the TableTools plug-in with elements in every row of one of the columns. On clicking the export button, I would like to hide/remove the elements from the exported…
conbask
  • 9,741
  • 16
  • 57
  • 94
2
votes
2 answers

Issue with tabletool of datatable with pdf, csv, xls and copy options

sTable = $('#s').dataTable({ "bVisible":"True", "dom": 'T<"clear">lfrtip', "tableTools": { "sSwfPath": "https://cdn.datatables.net/tabletools/2.1.1/swf/copy_csv_xls_pdf.swf", …
Ananta Prasad
  • 3,655
  • 3
  • 23
  • 35
2
votes
1 answer

How to get selected row data as javascript jsonObject from Datatables using Tabletools

I want to make an editable table from Datatables. I want to develop the same functionality as provided by the Editor which is not open source. The user should be able to select a row from the table and then click on an edit button to modify the…
2
votes
1 answer

TableTools export in JQuery Datatables not working

I've been struggling with this for two days. I've posted on the datatables forum but I've gotten no response so I'm hoping the community here can help. I've read similar posts on this issue here but I'm already using the correct path for sSwf as…
fillup
  • 118
  • 4
2
votes
1 answer

DataTables with TableTools fnSelect() fires twice on row select

I am attempting to capture row selection via a (DataTable) TableTools button's fnSelect() (to do some pre-processing of the row's data) ie. the user selects a row, some manipulation of the row data is done; then user can click the button. Problem is…
user908094
  • 290
  • 1
  • 4
  • 17
2
votes
1 answer

jQuery datatables tabletools buttons didn't show up

Can anyone explain why TableTools (http://datatables.net/extensions/tabletools/) not show up. I'm using the following js sources: //Version 1.10.2 //Version…
ramtamtam
  • 91
  • 1
  • 10
2
votes
0 answers

How to reduce the text size for PDF and Print in table tools : HTML

I am using Table tools to generate the PDF,CSV,EXCEL,and Print as