69
rated 0 times
[
71]
[
2]
/ answers: 1 / hits: 21314
/ 12 Years ago, wed, june 6, 2012, 12:00:00
I am using Datatables 1.9 version
var oTable = $('#example').dataTable( {
oLanguage: {sSearch: Search all columns:,
sLengthMenu: Display <select><option value='100'>100</option><option value='200'>200</option></select> records per page
},
sPaginationType: full_numbers,
bAutoWidth: false,
iDisplayStart: 0,
iDisplayLength: 2000,
bFilter: true,
bInfo: true,
bSort: true,
sScrollX: 100%,
sScrollY: 500px,
bScrollCollapse: true,
bPaginate: true,
bSortClasses: true,
bLengthChange: true,
bProcessing: true,
bDestroy: true,
bServerSide: true,
bDeferRender: true,
fnServerParams: function ( aoData ) {
aoData.push( { name: form_data, value: data } );
},
sAjaxSource: search.py,
fnServerData: function ( sSource, aoData, fnCallback ) {
$.ajax( {
dataType: 'json',
type: POST,
url: sSource,
data: aoData,
success: function (json)
{
fnCallback(json);
$('html, body').animate({scrollTop:$(document).height()}, 'slow');
document.getElementById(bottom).focus();
},
error: function (xhr, error, thrown) {
alert(An Error Occurred.!);
}
});
The issue is that when I run the search and datatables renders Processing ... text the Show .. Search and first next previous and last button also gets displayed. Is there a way that I defer there display when datatabales has processed or received response from backend.
More From » datatables