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
4
votes
2 answers

Why is tableTools making multiple calls to the same SWF file?

I happened to notice in my application that the copy_csv_xls_pdf.swf is getting called three times when datatables/tabletools are invoked. I put together a jsfiddle which (sometimes) illustrates the issue: The same behavior can be observed from the…
Jeromy French
  • 11,812
  • 19
  • 76
  • 129
4
votes
0 answers

Datatables and tabletools: How to export selected and sorted data to pdf, csv,

I spend all day looking for a solution on the internet, where need to export data after I have them sorted and selected rows. I use: dataTables 1.10.3 tabletools 2.2.3 In the code, I put the following: $(function(){ var table =…
Salines
  • 5,674
  • 3
  • 25
  • 50
4
votes
0 answers

Where is the sSwfPath path when using jquery-datatables-rails gem

I have set up Data Tables in my rails 4.1 project using the rweng/jquery-datatables-rails gem. Everything works great except the Table Tools extension. The buttons show but they do not work. I finally figured out that the reason the buttons don't…
4
votes
1 answer

How to see fixed columns on print view, using dataTables with FixedColumns and TableTools

I'm using DataTables with FixedColumns and TableTools extras among others. When I click Print button for seeing the print preview, the fixed columns are not shown, but PDF and Excel functions prints all the columns. Here you can see a live…
David
  • 4,336
  • 2
  • 23
  • 31
3
votes
4 answers

TableTools export not working in DataTables on multiple JQuery tabs

I am using DataTables-1.8.2, TableTools-2.0.1 and JQuery-1.6.4 to display a table on each of three jQuery tabs. TableTools provides the Copy/Excel/PDF/Print export features for the table and it works great on the first table on the first tab only. …
talonsensei
  • 225
  • 2
  • 3
  • 12
3
votes
3 answers

Trouble using DataTables TableTools within a jQuery UI dialog

I'm trying to use the DataTables 'TableTools' plugin on a table within a jQuery UI dialog. They work fine outside the dialog, but inside, the only button that works is Print. Here's a jsFiddle demo'ing the problem: http://jsfiddle.net/Yd3PT/31/ Any…
Scott Glew
  • 158
  • 1
  • 7
3
votes
2 answers

Use datatables button extension in AngularJS

I've been using the angularjs.datatables and want to enable to export to excel/pdf. The angularjs-datatables project does include support for TableTools extension but as I read on datatables site TableTools is retired and we should use Buttons for…
user1615304
  • 41
  • 1
  • 5
3
votes
1 answer

Data Tables download xls/csv file not working properly

I want to have 3 buttons - to download csv, xls and pdf file. In my case when I click on the download csv file button, it saves with extension of csv file, but when I open it it is excel - it's not comma separated file. PDF download button is…
ci_lover
  • 710
  • 1
  • 14
  • 38
3
votes
1 answer

Saving from Shiny renderDataTable

This question has been asked previously R shiny dataTables with TableTools and other extensions and Use TableTools for DataTables in R Shiny for renderDataTable but I am currently struggling getting this demonstration of TableTools to download the…
cdeterman
  • 19,630
  • 7
  • 76
  • 100
3
votes
1 answer

What to put as swf file in TableTools

I'm a very new programmer with no experience with tabletools or swf paths whatsoever. I'm trying to implement Table Tools to print/export/etc but so far only print is working for me. Most solutions have said that means the swf path is incorrect. But…
JaGo
  • 257
  • 1
  • 4
  • 12
3
votes
0 answers

Datatables TableTools : Configuration issues

I've been using dataTables in my project for about a while now and would like to enhance the user experience by adding some of the nice functionality that TableTools has to offer. I've started to play around with it and I'm struggling to get the…
180cl
  • 161
  • 1
  • 2
  • 7
3
votes
1 answer

TableTools not loading on a DataTables Table

The datatables works fine however I am trying to add TableTools and I am having issues. With what I am using the data tables works fine as intended with no issues at all, however trying to add tabletools to it has had no success. There are no…
ComputerLocus
  • 3,448
  • 10
  • 47
  • 96
3
votes
1 answer

DataTable - TableTools ShowSelectedOnly

I'm trying to use the DataTable plugin for TableTools.ShowSelectedOnly, but I have difficulties to make it works. Relative plugin page : TableTools.ShowSelectedOnly I use Example given in the plugin documentation : - for the selection : it works…
Maxi_Zu
  • 61
  • 4
3
votes
3 answers

DataTables TableTools buttons not working correctly (simple example)

I am trying to use the newest tableTool 2.2.0 and i have made a little and simple example jsfiddle.net/9ZTGb/ COPY and PRINT buttons seems to respond, but the "Copy" is resulting "blank", and "CSV","Excel","PDF" seems not workinkg at all.. this is…
user3013163
  • 35
  • 1
  • 1
  • 5
3
votes
0 answers

CSS Class to Hide/Show Specific Elements for DataTables Tabletools

I am using DataTables TableTools to Print and Export a table Tabletools plugin changes every other element to display:none except the table itself I would like to find a way to tell it to hide or show certian elements when you select the print…
Zoie
  • 63
  • 1
  • 7
1
2
3
11 12