moving vertical scroll bar to left of table?

moving vertical scroll bar to left of table?

gfonggfong Posts: 3Questions: 0Answers: 0
edited November 2013 in General
is there a way to do this? I couldn't find any info on this. I got a datatable with 40 + columns. it would be useful to have the scroll bar on the left than on the far right ...

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    DataTables uses the native scrolling provided by the browser. So some browsers (Webkit probably) may have a way of doing this, or your could use rtl text as that will layout the scrollbar on the left (again on some browsers OSs).

    Allan
  • gfonggfong Posts: 3Questions: 0Answers: 0
    thanks! i tried a bit and i got this :http://postimg.org/image/s9m1f74pp/

    unfortunately, all the columns aren't lining up since the scroll bar isn't taken into account for the header space. Is there a simple fix? how?
  • gfonggfong Posts: 3Questions: 0Answers: 0
    looks like someone has the same issue as me ... but i do need the scroll bar on the left ...

    http://datatables.net/forums/discussion/7180/vertical-scroll/p1
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Which version of DataTables are you using? Is it 1.9.4? If you try 1.10 ( https://github.com/DataTables/DataTables/tree/1_10_wip/media/js ) it supports rtl layout.

    I doubt it supports the scrollbar being on the left without rtl layout though - I've never tried that!

    Allan
This discussion has been closed.