TableTools working only partially
TableTools working only partially
akshaysarkar
Posts: 2Questions: 0Answers: 0
Hi Alan,
This is the best API i have found,so much to learn and possible to do with it.
Really Appreciate your hard work .
I was just facing a small issue in table tool,my excel copy and pdf copy are missing data from it, not exactly figure out why.
Here is my code :
I think issue is something related with other than alphabets ,Pls help ..
$(document).ready(function() {
/*
* Insert a 'details' column to the table
*/
var nCloneTh = document.createElement( 'th' );
var nCloneTd = document.createElement( 'td' );
nCloneTd.innerHTML = '';
nCloneTd.className = "center";
//Here First
$('#example thead tr').each( function () {
this.insertBefore( nCloneTh, this.childNodes[0] );
} );
//Here Second
$('#example tbody tr').each( function () {
this.insertBefore( nCloneTd.cloneNode( true ), this.childNodes[0] );
} );
var oTable = $('#example').dataTable({
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath" : "media/swf/copy_csv_xls_pdf.swf",
}
});
} );
Rendering engine
Rendering engine
Browser
Platform
Engine version
CSS grade
Trident
Trident
Internet
Explorer 4.0
Win 95
4
X
Trident
Trident
Internet
Explorer 5.0
Win 95+
5
C
Trident
Trident
Internet
Explorer 5.5
Win 95+
5.5
A
Trident
Trident
Internet
Explorer 4.0
Win 95+
4
X
Trident
Trident
Internet
Explorer 5.0
Win 95+
5
C
Trident
Trident
Internet
Explorer 5.5
Win 95+
5.5
A
This is the best API i have found,so much to learn and possible to do with it.
Really Appreciate your hard work .
I was just facing a small issue in table tool,my excel copy and pdf copy are missing data from it, not exactly figure out why.
Here is my code :
I think issue is something related with other than alphabets ,Pls help ..
$(document).ready(function() {
/*
* Insert a 'details' column to the table
*/
var nCloneTh = document.createElement( 'th' );
var nCloneTd = document.createElement( 'td' );
nCloneTd.innerHTML = '';
nCloneTd.className = "center";
//Here First
$('#example thead tr').each( function () {
this.insertBefore( nCloneTh, this.childNodes[0] );
} );
//Here Second
$('#example tbody tr').each( function () {
this.insertBefore( nCloneTd.cloneNode( true ), this.childNodes[0] );
} );
var oTable = $('#example').dataTable({
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath" : "media/swf/copy_csv_xls_pdf.swf",
}
});
} );
Rendering engine
Rendering engine
Browser
Platform
Engine version
CSS grade
Trident
Trident
Internet
Explorer 4.0
Win 95
4
X
Trident
Trident
Internet
Explorer 5.0
Win 95+
5
C
Trident
Trident
Internet
Explorer 5.5
Win 95+
5.5
A
Trident
Trident
Internet
Explorer 4.0
Win 95+
4
X
Trident
Trident
Internet
Explorer 5.0
Win 95+
5
C
Trident
Trident
Internet
Explorer 5.5
Win 95+
5.5
A
This discussion has been closed.
Replies
-In excel ,data is coming ,but alignment went for the toss.(data alignment issue)
Seriously need help in it !!