2

I am working on DataTables. I need scrollbar at the top and bottom of my table. I have more than 25 rows and my table overflow.

Every time I need to scroll down for horizontally scroll the table

Top of table:

top of table

Bottom of table:

bottom

halfer
  • 19,824
  • 17
  • 99
  • 186
Mubin
  • 92
  • 1
  • 11

1 Answers1

-1

I solved this, by adding a max-height to the table, which is smaller than 100vh, so that there is a horizontal and a vertical scrollbar (Like in this Demo, when all options are activated: http://fixedheadertable.com/ ). But please notice, that you have to destroy the plugins and initialize a new fixed header table after resize.

Martin P.
  • 292
  • 2
  • 11
  • i am not using fixed header for this @Martin – Mubin Nov 29 '16 at 11:28
  • yes, i see - but this can be your solution too. In any case, you have to edit the code. My example is only an example for how the result could look like :) – Martin P. Nov 29 '16 at 13:55
  • thnks bro @Martin P. but i got the solution from this link http://stackoverflow.com/questions/3934271/horizontal-scrollbar-on-top-and-bottom-of-table – Mubin Nov 30 '16 at 08:24