Horizontal scroll to a particular column on window load, with Fixed Columns

Horizontal scroll to a particular column on window load, with Fixed Columns

karlharrisonkarlharrison Posts: 3Questions: 1Answers: 0

I have a table with a number of rows from 5-50 depending on the database query and each row has 1+365 columns - i.e. name of person and one for each day of the year and in each cell is data associated with what a person is doing each day of the year.

I am using fixed columns on the first column ( the name of the person) and would like to have the horizontal scroll on window load to scroll a particular column - for example the current date day of year. I can identify the header cell for the current date with javascript but not sure how to scrollX or scrollTo, the column I need.

As you can imagine throughout the year the column to scroll to will slowly shift daily to the right.

Answers

This discussion has been closed.