TableTools not working with TabbedPanels
TableTools not working with TabbedPanels
Hi...
I have a serious problem here!!
i have 3 tables in 3 tabs, i cant re-draw datatable for all of theme, here is my code :
$(document).ready( function () {
var oTable = $("#tableau1").dataTable( {
"iDisplayLength": 50,
"bSort": false,
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [
"xls",
{
"sExtends": "print",
"sButtonText": "Impimer"
},
{
"sExtends": "copy",
"sButtonText": "Copier"
}
]
}
} );
var oTable1 = $("#tableau2").dataTable( {
"iDisplayLength": 50,
"bSort": false,
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [
"xls",
{
"sExtends": "print",
"sButtonText": "Impimer"
},
{
"sExtends": "copy",
"sButtonText": "Copier"
}
]
}
} );
var ret=TabbedPanels1.showPanel(1);
oTable1.fnDraw();
var ret=TabbedPanels1.showPanel(0);
} );
tabletools is activated for the first tab (tableau1) but does nothing with the second one (tableau2)!!!!
} );
I have a serious problem here!!
i have 3 tables in 3 tabs, i cant re-draw datatable for all of theme, here is my code :
$(document).ready( function () {
var oTable = $("#tableau1").dataTable( {
"iDisplayLength": 50,
"bSort": false,
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [
"xls",
{
"sExtends": "print",
"sButtonText": "Impimer"
},
{
"sExtends": "copy",
"sButtonText": "Copier"
}
]
}
} );
var oTable1 = $("#tableau2").dataTable( {
"iDisplayLength": 50,
"bSort": false,
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [
"xls",
{
"sExtends": "print",
"sButtonText": "Impimer"
},
{
"sExtends": "copy",
"sButtonText": "Copier"
}
]
}
} );
var ret=TabbedPanels1.showPanel(1);
oTable1.fnDraw();
var ret=TabbedPanels1.showPanel(0);
} );
tabletools is activated for the first tab (tableau1) but does nothing with the second one (tableau2)!!!!
} );
This discussion has been closed.