Horizontal Scroll Position

Horizontal Scroll Position

Yadav224Yadav224 Posts: 2Questions: 1Answers: 0

Dear Team,
Good afternoon,
i am using datatable to show some data.
I want to set bottom (ScrollX) position according to system datetime which was present in Header(table>th) screen attached
.
i really need help please help.

Answers

  • Yadav224Yadav224 Posts: 2Questions: 1Answers: 0

    I want set this scroll according the time,
    like if current time is evening 6.30 pm then bottom scroll according to header.
    please help.

  • kthorngrenkthorngren Posts: 20,425Questions: 26Answers: 4,794
    edited April 2023

    One option is to use jQuery scrollLeft(). I created this example, with FixedColumns, to show the needed jQuery selector:
    https://live.datatables.net/dodobuge/3/edit

    You will need to calculate the value to pass into scrollLeft() based on your table configuration.

    Kevin

Sign In or Register to comment.