sInfo text for Print and Copy buttons Not working

sInfo text for Print and Copy buttons Not working

sas1973sas1973 Posts: 2Questions: 0Answers: 0
edited June 2013 in TableTools
Below is my setup to the datatable using tabletools. My issue is i cannot get the "sInfo" text to be displayed when Copy or Print buttons are being used. It always display a empty white box.

Am i missing something? or is this a issue in TableTools?

Thanks


[code]
$(document).ready(function()
{
oTable = $('#FIELD_NUM_71').dataTable(
{
"sScrollX": "100%",
"bAutoWidth": false,
"aoColumnDefs": [{"sWidth": "3em", "aTargets": [ 0 ]},
{"bSortable": false, "aTargets": [0] }],
"bProcessing": true,
"bJQueryUI": true,
"oLanguage": {"sSearch": "Filter:"},
"sPaginationType": "full_numbers",
"iDisplayLength": 10,
"aLengthMenu": [[10,25,50,100,-1], [10,25,50,100,"All"]],
"iDisplayStart": 0,
"sDom": '<"H"Tlfr>t<"F"ip>',
"oTableTools": { "aButtons": [ {
"sExtends": "copy",
"sToolTip": "Copy to Clipboard",
"sInfo": "Table Copied to Clipboard",
"mColumns": "sortable"
},
{
"sExtends": "xls",
"sTitle": "My title",
"sToolTip": "Save as Excel Worksheet",
"sFileName": "*_TableTools.pdf",
"mColumns": "sortable"
},
{
"sExtends": "pdf",
"sPdfOrientation": "landscape",
"sTitle": "My title",
"sToolTip": "Save as PDF",
"sFileName": "*_TableTools.pdf",
"sPdfMessage": "RTCIS Message Here.",
"mColumns": "sortable"
},
{
"sExtends": "print",
"sInfo": "RTCIS Table Print, Please press escape when done",
"sMessage": "RTCIS Scroll Area",
"bShowAll": false,
"mColumns": "sortable"

}],
"sSwfPath": "../web/thirdparty/datatables/1.9.4/extras/TableTools/media/swf/copy_csv_xls_pdf.swf" }
});


});
[/code]

Replies

  • sas1973sas1973 Posts: 2Questions: 0Answers: 0
    I found out that by using the "TableTools_JUI.css" in the header was causing the Flash white boxes to not display the text (default) or the custom text set by "sInfo" for Print and Copy Buttons.

    Removing the reference fixed it.
  • aparrenoaparreno Posts: 1Questions: 0Answers: 0
    I have the same error, how did you fixed it?
This discussion has been closed.