I have a rather complex table with several colpsan and rowspan that is built dynamically, and I wish to lock headers (and if possible the first rows on the left also) and scroll table content (both vertically and horizontally).
This table has lots of lines and columns (3 to 4 hundred lines, and columns depend on the time frame my user chooses to see). This table represents an overview of the downprices on products along a timeline. Each product may have one or more discount types.
My table looks like this (sorry for the blurs, but the info in it is kind of confidential):
In summary, the first three rows are headers and the first three cols are product information (those are the ones I would like to lock!).
Each product discount is put into a TD starting on the col this discount starts with a COLSPAN that allows it to go to the col the discount ends.
So, as you can imagine, when the number of product shown grows, users don't know anymore to which date each column corresponds, and if he chooses a date span that goes much further (and the idea is to go on a date span over 1 year) they won't know which product they are looking at (I've turned around this by adding a title to each <tr>
with the product info, so any solution to lock headers will be great enough!)
I've tried several solutions to lock header, but none of them worked since due to the colspans of the td on table body, my tbody and theader don't align.
Anyone knows how I can do such a thing? We use mootools here...