How do I disable/enable pagination
How do I disable/enable pagination
soleah
Posts: 5Questions: 0Answers: 0
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.
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.
This discussion has been closed.
Replies