Thead is doubled when using scrollY:'50vh',
Thead is doubled when using scrollY:'50vh',
Anonymouse703
Posts: 18Questions: 8Answers: 0
in DataTables
Hello guys, when I add scrollY:'50vh',
the thead display is doubled.
this is my code.
$("#addworkoderTable").DataTable().destroy();
$('#addworkoderTable').DataTable({
responsive: true,
paging : true,
destroy : true,
scrollCollapse:true,
scrollY:'50vh',
});
Answers
You will want
paging: false
forscrollY
. Making that change your code snippet works in this test case:http://live.datatables.net/yolayazu/1/edit
The problem is specific to your page. Make sure you have all the correct js and css libraries for the styling framework you are using. Use the Download Builder to get the correct files. If you still need help the please provide a link to your page or a test case (update mine if you want) to show the issue so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin