What you could do is make use of the fnDrawCallback function ( http://datatables.net/usage/callbacks#fnDrawCallback ). If the table is showing only 1 record, then you can just apply .style.display="none" (or visibility:hidden if you want to keep the element in the flow) - otherwise the elements should be shown :-)
Replies
What you could do is make use of the fnDrawCallback function ( http://datatables.net/usage/callbacks#fnDrawCallback ). If the table is showing only 1 record, then you can just apply .style.display="none" (or visibility:hidden if you want to keep the element in the flow) - otherwise the elements should be shown :-)
How does that sound?
Regards,
Allan
So what I ended up doing is using PHP to hide or show the following lines:
[code]
"bPaginate": false,
"bInfo": false
[/code]
depending if my records are greater than 10 or not.
that works just fine.