I m working with datatables for the first time and got struck with the below explained issue.. Whenever i m trying to include vertical scroll , column headers losses all itz alignment, all the column width reduces and as a result will get header row who's length is half of the entire table.
One more thing i ve noticed is that, in the th class style width is coming as 0px, can any one pls temme why it's coming so ? js part i ve included,
$(document).ready(function() {
$.ajax({
type : "GET",
url :"",
dataType : "json",
success : function(data)
{
$('#customers').dataTable(
{
"aaData":data.response,
"aoColumns": [
{ "sTitle": "Rendering Engine", "bSortable": false},
{ "sTitle": "Broswers", "bSortable": false },
{ "sTitle": "Platform", "bSortable": false }
],
"sScrollY": "250px",
"iDisplayLength": 200,
"bFilter": false,
"bLengthChange": false,
"bAutoWidth": false
});
}
});
});
and html part
<table id="customers"></table>
Thanks in Advance !