Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82006

Paging navigation buttons disabled when server-side processing, and jquery UI are used

$
0
0
version: 1.9.4
line: 11713
function:
 "fnUpdate": function ( oSettings, fnCallbackDraw ) 
line contents:
 var iPages = Math.ceil((oSettings.fnRecordsDisplay()) / oSettings._iDisplayLength); 

The number of pages is counted using fnRecordsDisplay(), which returns display records count instead of all records count. This can be fixed by replacing this call with fnRecordsTotal():
 var iPages = Math.ceil((oSettings.fnRecordsTotal()) / oSettings._iDisplayLength); 

This wrong function call leads to the paging navigation buttons being disabled, as dataTables thinks total record count is equal to display record count.

Viewing all articles
Browse latest Browse all 82006

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>