Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable vertical scrolbar in DataTable?

I did googling and read the Datatable documentation but could not able to disable the auto vertical scrolbar in DataTable. please let me know how to disable it?

$('#myTable').DataTable({
       "searching": true,
       "paging":   true,
       "ordering": true,
       "info":     true,


       "language": {
          "url": url,
          "searchPlaceholder": " ... "

      }

datatable screenshot

like image 420
Zaker Husien Yusofi Avatar asked Oct 16 '25 13:10

Zaker Husien Yusofi


1 Answers

Try to set the scroll y to false.

$('#myTable').DataTable({
       scrollY:        false,
       scrollX:        false,
       "searching": true,
       "paging":   true,
       "ordering": true,
       "info":     true,


       "language": {
          "url": url,
          "searchPlaceholder": " ... "

      }

Try it with overflow:hidden in CSS.

like image 113
Gulmuhammad Akbari Avatar answered Oct 19 '25 09:10

Gulmuhammad Akbari



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!