Datatable using Server Side Progress, Pagination dont work (Datatables ver 1.10)

Datatable using Server Side Progress, Pagination dont work (Datatables ver 1.10)

cuongdevcuongdev Posts: 2Questions: 1Answers: 0
edited July 2015 in Free community support

On Server
...
$result['draw'] = $draw; //1
$result['recordsTotal'] = $total; //1629
$result['recordsFiltered'] = $data->count(); // 200
$result['data'] = $temp; //data array

But, Pagination Button Bar only show one button for page 1, It should show eight buttons for 9 pages (1629 / 200).

Thanks a lot.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,853Questions: 1Answers: 10,134 Site admin
    Answer ✓

    Per the forum rules, please link to a test case showing the issue.

    $result['recordsFiltered'] = $data->count(); // 200

    Sounds like your results have been filtered to just 200 rows.

    If there is no filter, then you need to read over the server-side processing parameters spec again:

    recordsFiltered - Total records, after filtering (i.e. the total number of records after filtering has been applied - not just the number of records being returned for this page of data).

    Allan

  • cuongdevcuongdev Posts: 2Questions: 1Answers: 0

    Thanks so much, I misunderstood about [recordsFiltered]

This discussion has been closed.