How do I disable/enable pagination

How do I disable/enable pagination

soleahsoleah Posts: 5Questions: 0Answers: 0
edited August 2011 in DataTables 1.8
I have a checkbox that suppose to enable or disable (unchecked) pagination.

When unchecked here's the code:
oTable = $('#tabQuery').dataTable({
"bPaginate": false,
"sDom": '<"top"lpfi<"clear">>rt'
} );

When checked this is the code:
oTable = $('#tabQuery').dataTable({
"bPaginate": true,
"sDom": '<"top"lpfi<"clear">>rt'
} );

I am getting the error message "Unable to reinitialise datatables...need to use API.."

I am not sure if my codes are suppose to be as simple as that but what did I miss? I appreciate any help.

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    http://www.datatables.net/forums/discussion/6144/how-to-change-idisplaylength-dynamically/p1
This discussion has been closed.