bstatesave horizontal scroll

bstatesave horizontal scroll

dmartinezdmartinez Posts: 13Questions: 0Answers: 0
edited July 2011 in General
hi everyone, im using fixedColumn with a table, but i have a problem with horizontal scroll bar.. i need fixed the position of the horinzontal scroll when the page reload.. i found how to do that with vertical scroll using bstatesave (just for vertical scroll), but i need the same for the horizontal scroll. can someone help me please??

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    DataTables doesn't store the horizontal scrolling position, as you are seeing, but it should be quite straight forward to hack it into the code - just have a look at the bit where it is saving the current scrolling position (search for scrollTop in the code). Alternatively it would be possible to use the state saving callback methods ( http://datatables.net/usage/callbacks#fnStateSaveCallback ) to add that value into the state saving.

    Allan
  • dmartinezdmartinez Posts: 13Questions: 0Answers: 0
    thanks allan.. it helped me a lot.. i found out the problem.. i was seeing in Scroller.js and i make some changes.. now it works
This discussion has been closed.