ScrollY , paging fals not working
ScrollY , paging fals not working
Hello
I wonder what I doing wrong?
I tried to add a vertical scroll like in example on:
https://www.datatables.net/examples/basic_init/scroll_y.html
But this take no effect. No Scolling and also pagination (Show 5,10.. entries..) is still there
I have downloaded the last version DataTables 1.10.5.
Can anybody help me?
var oTable = $("#example").dataTable({
"sAjaxSource": "getData.php?USERID=<?php echo $USERID ?>",
"sAjaxDataProp": "",
"aaSorting": [[ 1, "desc" ]],
"scrollY": "50px",
"scrollCollapse": true,
"paging": false,
//"bPaginate": false,
"aoColumns":
....
...
regards
Hawk
Answers
I have now changed all file to new version (also the datatable.css) and now the scrolling will work, also the paging is now off.
But another strange problem:
If "scrollY" is activated the column headers of the table does not fit (adjust) to the nody and rest of the table. If I click on the table column head the rows suddenly aligned correct.
What could this be?
regards
Has nobody an idea why the header columns are not aligned correct to the body?
It is exact the same behavior as described in:
http://stackoverflow.com/questions/17237812/datatable-jquery-table-header-width-not-aligned-with-body-width
If I click on the header row the alignment will be ok, but not at start time.