Horizontal scroll bar is not working
Horizontal scroll bar is not working
pansathish
Posts: 12Questions: 2Answers: 0
I have add in datatable following parameter, but i didnot get horizontal scroll bar. My table has 35 columns in it. Now it is showing without scroll, its occupying whole window. I am followed the guideline which is mentioned in documentation. but nothing work. I am using datatable 1.9.4.
jQuery(document).ready(function($) {
var oTable = $('#tabela_controller').dataTable({
"bProcessing" : true,
"bServerSide" : true,
"sPaginationType" : "full_numbers",
"sAjaxSource" : "http://localhost/project/index",
"bFilter": false,
"bLengthChange":false,
"sPaginationType": "full_numbers",
"bProcessing" : true,
"iDisplayLength":2,
"fnServerData" : function(sSource, aoData, fnCallback) {
$.ajax({
"dataType" : 'json',
"type" : "post",
"url" : "http://localhost/project/index",
"data" : aoData,
"success" : fnCallback
});
},
"sScrollX": "50%",
"bScrollCollapse": true,
});
Please help
jQuery(document).ready(function($) {
var oTable = $('#tabela_controller').dataTable({
"bProcessing" : true,
"bServerSide" : true,
"sPaginationType" : "full_numbers",
"sAjaxSource" : "http://localhost/project/index",
"bFilter": false,
"bLengthChange":false,
"sPaginationType": "full_numbers",
"bProcessing" : true,
"iDisplayLength":2,
"fnServerData" : function(sSource, aoData, fnCallback) {
$.ajax({
"dataType" : 'json',
"type" : "post",
"url" : "http://localhost/project/index",
"data" : aoData,
"success" : fnCallback
});
},
"sScrollX": "50%",
"bScrollCollapse": true,
});
Please help
This discussion has been closed.
Replies