Vertical Scroll Problem?
Vertical Scroll Problem?
moe4715
Posts: 2Questions: 0Answers: 0
I don't know if this is a bug, but when I try to use scrolling in the following example, I get no data showing up at the first time and data but a never ending load dialogue on the second call. My code looks as follows:
// this code works fine
[code]
oTable = $('#datatable').dataTable({
"bProcessing":true,
"bServerSide":false,
"sAjaxSource":"/reprocessing/show",
"bDestroy": true,
"bFilter": false,
"fnServerParams": function ( aoData ) {
aoData.push( { "name": "some_name", "value": "some_value" } );
},
"sDom":"frtlip",
"oLanguage":{
"sUrl":"/languages/" + language.toLowerCase() + "_datatable.csv"
},
"iDisplayLength" : -1,
"fnDrawCallback": function () {
if(this.fnSettings().fnRecordsTotal() > 0)
$('#bottom_options').show();
else
$('#bottom_options').hide();
$('#datatable_length').hide();
$('#datatable_info').hide();
$('#datatable_paginate').hide();
}
});
[/code]
// this code is not working correctly as described above
[code]
oTable = $('#datatable').dataTable({
"bProcessing":true,
"bServerSide":false,
"sAjaxSource":"/reprocessing/show",
"bDestroy": true,
"bFilter": false,
"fnServerParams": function ( aoData ) {
aoData.push( { "name": "some_name", "value": "some_value" } );
},
"sDom":"frtlip",
"oLanguage":{
"sUrl":"/languages/" + language.toLowerCase() + "_datatable.csv"
},
"iDisplayLength" : -1,
"sScrollY": "200px",
"bPaginate": false,
"fnDrawCallback": function () {
if(this.fnSettings().fnRecordsTotal() > 0)
$('#bottom_options').show();
else
$('#bottom_options').hide();
$('#datatable_length').hide();
$('#datatable_info').hide();
$('#datatable_paginate').hide();
}
});
[/code]
Thank you in advance for your help.
Best Regards,
moe
// this code works fine
[code]
oTable = $('#datatable').dataTable({
"bProcessing":true,
"bServerSide":false,
"sAjaxSource":"/reprocessing/show",
"bDestroy": true,
"bFilter": false,
"fnServerParams": function ( aoData ) {
aoData.push( { "name": "some_name", "value": "some_value" } );
},
"sDom":"frtlip",
"oLanguage":{
"sUrl":"/languages/" + language.toLowerCase() + "_datatable.csv"
},
"iDisplayLength" : -1,
"fnDrawCallback": function () {
if(this.fnSettings().fnRecordsTotal() > 0)
$('#bottom_options').show();
else
$('#bottom_options').hide();
$('#datatable_length').hide();
$('#datatable_info').hide();
$('#datatable_paginate').hide();
}
});
[/code]
// this code is not working correctly as described above
[code]
oTable = $('#datatable').dataTable({
"bProcessing":true,
"bServerSide":false,
"sAjaxSource":"/reprocessing/show",
"bDestroy": true,
"bFilter": false,
"fnServerParams": function ( aoData ) {
aoData.push( { "name": "some_name", "value": "some_value" } );
},
"sDom":"frtlip",
"oLanguage":{
"sUrl":"/languages/" + language.toLowerCase() + "_datatable.csv"
},
"iDisplayLength" : -1,
"sScrollY": "200px",
"bPaginate": false,
"fnDrawCallback": function () {
if(this.fnSettings().fnRecordsTotal() > 0)
$('#bottom_options').show();
else
$('#bottom_options').hide();
$('#datatable_length').hide();
$('#datatable_info').hide();
$('#datatable_paginate').hide();
}
});
[/code]
Thank you in advance for your help.
Best Regards,
moe
This discussion has been closed.
Replies
....
"sScrollY": "200px",
"bPaginate": false,
....