Pagination- show box - doesn't work - shows all entries
Pagination- show box - doesn't work - shows all entries
I have a small database records and datatable shows its without pagination - there are all entries on screen
It's datatable:
[code] $('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"bPaginate": true,
"sAjaxSource": "/user/all"
} );
[/code]
request:
[code]
sEcho:3
iColumns:3
sColumns:
iDisplayStart:0
iDisplayLength:5
mDataProp_0:0
mDataProp_1:1
mDataProp_2:2
sSearch:
bRegex:false
sSearch_0:
bRegex_0:false
bSearchable_0:true
sSearch_1:
bRegex_1:false
bSearchable_1:true
sSearch_2:
bRegex_2:false
bSearchable_2:true
iSortCol_0:0
sSortDir_0:asc
iSortingCols:1
bSortable_0:true
bSortable_1:true
bSortable_2:true
_:1395897821221
[/code]
json:
[code]
{"iTotalRecords": 7, "iTotalDisplayRecords":7,"sEcho":3, "aaData":[[1,"aaa","ememmem"],[2,"aaa","ememmem"],[3,"aaa","ememmem"],[4,"aaa","ememmem"],[5,"aaa","ememmem"],[6,"aaa","ememmem"],[7,"aaa","ememmem"]]}
[/code]
Any advice?
It's datatable:
[code] $('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"bPaginate": true,
"sAjaxSource": "/user/all"
} );
[/code]
request:
[code]
sEcho:3
iColumns:3
sColumns:
iDisplayStart:0
iDisplayLength:5
mDataProp_0:0
mDataProp_1:1
mDataProp_2:2
sSearch:
bRegex:false
sSearch_0:
bRegex_0:false
bSearchable_0:true
sSearch_1:
bRegex_1:false
bSearchable_1:true
sSearch_2:
bRegex_2:false
bSearchable_2:true
iSortCol_0:0
sSortDir_0:asc
iSortingCols:1
bSortable_0:true
bSortable_1:true
bSortable_2:true
_:1395897821221
[/code]
json:
[code]
{"iTotalRecords": 7, "iTotalDisplayRecords":7,"sEcho":3, "aaData":[[1,"aaa","ememmem"],[2,"aaa","ememmem"],[3,"aaa","ememmem"],[4,"aaa","ememmem"],[5,"aaa","ememmem"],[6,"aaa","ememmem"],[7,"aaa","ememmem"]]}
[/code]
Any advice?
This discussion has been closed.