Server-side processing
Server-side processing
I read 100 data from Database, but I send only 10 data to DataTable. But I want use Server-side processing from http://www.datatables.net/usage/server-side.
My code is:
[code]
function prepareDataTable() {
$('#displayData').dataTable({
"iDisplayLength": 10,
"iDisplayStart": 20,
"aaData": Rows,
"iTotalRecords": 57,
"iTotalDisplayRecords": 57,
"bSort": false,
"bFilter": false,
"aoColumns": [
{ "mDataProp": "name" }
]
});[/code]
In Rows I have only 10 data. So I want use Ajax to pass next data. And I want:
1. I want display "Showing 1 to 10 of iTotalRecords entries", where iTotalRecords is number of all my data.
2. Arrows next / previous will be enable (now are disable)
My code is:
[code]
function prepareDataTable() {
$('#displayData').dataTable({
"iDisplayLength": 10,
"iDisplayStart": 20,
"aaData": Rows,
"iTotalRecords": 57,
"iTotalDisplayRecords": 57,
"bSort": false,
"bFilter": false,
"aoColumns": [
{ "mDataProp": "name" }
]
});[/code]
In Rows I have only 10 data. So I want use Ajax to pass next data. And I want:
1. I want display "Showing 1 to 10 of iTotalRecords entries", where iTotalRecords is number of all my data.
2. Arrows next / previous will be enable (now are disable)
This discussion has been closed.