TableTools uasge

TableTools uasge

alaaomalaaom Posts: 4Questions: 0Answers: 0
edited September 2012 in TableTools
Hi All,
I am trying to use the table Tools for my Table, I followed the institution for the initialization
I tried the this mentioned initialization
[code]
$(document).ready( function () {
$('#example').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "media/swf/copy_csv_xls_pdf.swf"
}
} );
} );
[/code]

the tool does not appear
I tried the alternative method using new
[code]
$(document).ready(function () {
var oTable = $('.dataTable3').dataTable({
"bPaginate": true,
"bLengthChange": false,
"bFilter": true,
"bSort": true,
"bInfo": false,
"bAutoWidth": false,
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"iDisplayLength": 100,
"sDom": '<"H"Tfr>t<"F"ip>',
"oLanguage":
{
"sProcessing": "جاري التحميل...",
"sLengthMenu": "أظهر مُدخلات _MENU_",
"sZeroRecords": "لم يُعثر على أية سجلات",
"sInfo": "إظهار _START_ إلى _END_ من أصل _TOTAL_ مُدخل",
"sInfoEmpty": "يعرض 0 إلى 0 من أصل 0 سجلّ",
"sInfoFiltered": "(منتقاة من مجموع _MAX_ مُدخل)",
"sInfoPostFix": "",
"sSearch": "ابحث:",
"sUrl": "",
"oPaginate": {
"sFirst": "الأول",
"sPrevious": "السابق",
"sNext": "التالي",
"sLast": "الأخير"
}
}
})
.rowGrouping({ bExpandableGrouping: true, iGroupingColumnIndex2: 1, iGroupingColumnIndex3: 2 });

var oTableTools = new TableTools(oTable, {
"buttons": [
"copy",
"csv",
"xls",
"pdf",
{ "type": "print", "buttonText": "Print me!" }
]
});

$('#example').before(oTableTools.dom.container);



});
[/code]

the table tool appears but none of the buttons work,excepts print
here the reference to my example
http://debug.datatables.net/ifelov

note that: I added all the required references to java script table tool and CSS

Replies

  • allanallan Posts: 63,680Questions: 1Answers: 10,498 Site admin
    > none of the buttons work,excepts print

    Then the SWF file isn't being loaded or you don't have Flash. Check your server error log for 404 errors.

    Allan
This discussion has been closed.