I can not get scroller and Tabletools to work
I can not get scroller and Tabletools to work
[NOTES]: I have been using datatbles for about 2 years now but never had trouble until i needed to redesign the site from the ground up.
[PROBLEM]: There is an issue getting Scroller and Tabeltools to work together
I do not understand the Dom vs sDom (a link would be helpful but not my main concern)
[What I have tried]:
Scroller Works not table tools (also the <TH> do not follow the <TD>) http://snag.gy/sxQx6.jpg
"Dom": '<"search"fTlp><"bottom">T<"clear">lfrtip',
//"sDom": '<"search"fTlp><"bottom">',
Tabletools Works not scroller http://snag.gy/nq4ex.jpg
//"Dom": '<"search"fTlp><"bottom">T<"clear">lfrtip',
"sDom": '<"search"fTlp><"bottom">',
//---------------------------------------------------------------------------------------
$(document).ready(function() {
$('#assets').dataTable( {
"sAjaxSource": "include/asset_json.php",
"bProcessing": true,
"Dom": '<"search"fTlp><"bottom">T<"clear">lfrtip',
//"sDom": '<"search"fTlp><"bottom">',
//"paginate": false,
"autoWidth": true,
//"info": true,
"scrollY": "200px",
"scrollCollapse": true,
"paging": false,
tableTools: {
"sSwfPath": "include/DataTables-1.10.0/extensions/TableTools/swf/copy_csv_xls_pdf.swf"
}
} );
//------------------------------------------------------------------------------------
Answers
It is working now. I replaced
dom
with sDom.I stripped all the embedded CSS out of my code meaning the css between style tags
I will slowly start to reintroduce CSS as needed.
I used sDom I still do not know what the difference is between
dom
and sDom.sDom = 1.9.
dom = 1.10
Both should work in 1.10
I am still a bit confused as to why sDom would work. perhaps there is some legacy code left over.
Thank you for the information.