Pagination not working
Pagination not working
thelinuxer
Posts: 1Questions: 0Answers: 0
Hi everyone.
I am developing an application using Django and used datatables in one of my screens. I followed the server-side processing example, and my data is displayed correctly.
The only problem I am having is that paging is not working. And by that I mean that the buttons are disabled as if I only have 1 page which is not the case.
[code]
$(document).ready(function() {
oTable = $('#my-table').dataTable( {
"bServerSide": true,
"bProcessing": true,
"sAjaxSource": "/getdata/",
"bFilter": false,
"bSearchable":false,
"sPaginationType": "full_numbers"
} );
[/code]
Also, I noticed that it display correct data in the info section
"Showing 1 to 10 of 10 entries (filtered from 12 total entries)"
So can anyone tell me why the paging is not working.
Thanks in advance.
I am developing an application using Django and used datatables in one of my screens. I followed the server-side processing example, and my data is displayed correctly.
The only problem I am having is that paging is not working. And by that I mean that the buttons are disabled as if I only have 1 page which is not the case.
[code]
$(document).ready(function() {
oTable = $('#my-table').dataTable( {
"bServerSide": true,
"bProcessing": true,
"sAjaxSource": "/getdata/",
"bFilter": false,
"bSearchable":false,
"sPaginationType": "full_numbers"
} );
[/code]
Also, I noticed that it display correct data in the info section
"Showing 1 to 10 of 10 entries (filtered from 12 total entries)"
So can anyone tell me why the paging is not working.
Thanks in advance.
This discussion has been closed.
Replies