In 2005, Stu Nichols posted this entry about have a fixed header with scrolling rows in a table.
Is there a more updated solution to this task, or is what Stu wrote in 2005 still considered the latest?
In 2005, Stu Nichols posted this entry about have a fixed header with scrolling rows in a table.
Is there a more updated solution to this task, or is what Stu wrote in 2005 still considered the latest?
The second way is kinda how JQGrid handles its scrollable tables. Have a look at thier demos here. And perhaps instead of recreating the wheel you would like to use thier TableToGrid Method. This will take a html table and turn it into thier formatted grid.
That's as current as exists AFAIK. Depending on which browsers you need to support you can use CSS to attach an overflow: scroll
to the tbody element, but it's not officially in the CSS spec and only works semi-reliably. Firefox seems to understand it, and I believe Chrome will as well, but IE ignores it enitrely.
I don't know about you but I need tables which can handle dynamic width (and height). Firefox (<= 3.6) is able to handle this very well and none of the suggested frameworks seem to deal with that in a clean way. Too bad Firefox 3.7 is removing this feature as they call it a bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=552080
Feel free to vote on this issue and have the Firefox guys rethink their descition.