ColumnFilterWidget and TableTools

ColumnFilterWidget and TableTools

dontpushdontpush Posts: 4Questions: 0Answers: 0
edited April 2012 in General
So i'm trying to get both ColumnFilterWidget and TableTools to work together, but i cant get them both to display at the same time. I think it has something to do with the code:

[code]"sDom": 'T<"clear">lfrtip',
"sDom": 'W<"clear">lfrtip',[/code]

I tried changing the order of them, taking each one out, etc. What is the correct way to do this?

[code]
$(document).ready( function () {
$('#example').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [ "copy", "print" ]
},
"sDom": 'W<"clear">lfrtip',
"sScrollY": "500px",
"bPaginate": false,
"bScrollCollapse": true
} );
} );
[/code]

Replies

  • dontpushdontpush Posts: 4Questions: 0Answers: 0
    edited April 2012
    Alright so i did some reading through other threads about the sDom and i realize how it is supposed to be used (i was clueless before).. but even knowing the syntax i still cant figure it out :\ I think its because i dont know where the divs are loading into the table (i cant find any new divs in the view source)
This discussion has been closed.