iDisplayLength with Server side processing?
iDisplayLength with Server side processing?
Hello,when put that iDisplayLength = 10 ,it works fine when bServerSide = false,but when it is true,it display all records on one page even if iDisplayLength = 10.How to solve this?Tnx
This discussion has been closed.
Replies
[code]
for ( $row = 0; $row < $numsplf; $row++) {
if (($row < ( $iDisplayStart + $iDisplayLength )) && ($row >= $iDisplayStart ) ) {
/* build aaData here */
}
}
[/code]
I believe just by following the code on the link that you just posted should work. DataTables will do the pagination for you as long as you give it the necessary information it needs.
Could you post your server side code?
codingavenue