Display Tag: Static Headers
One of the requests we get over on the display tag project is a way to have static headers. Basically, this means that a user could scroll down through all the records on a page and the header would stay in place. The next generation of the tag library has a <thead> and <tbody> that makes this fairly easy to do. For instance, just by adding style="height: 400px; overflow: auto"
to the <tbody> tag - you get the desired effect. Cool stuff - only seems to work in Mozilla though. Any IE/CSS experts out there that can explain why it doesn't work in IE?
See Also: Display Tag: Static Headers - Revisited
Posted by Graham on August 17, 2003 at 03:50 AM MDT #
Posted by Matt Raible on August 17, 2003 at 04:05 AM MDT #
Posted by Graham on August 17, 2003 at 05:44 AM MDT #
Posted by mpm on August 17, 2003 at 06:36 PM MDT #
How do I get the next version of the display library?
I see the sample pages on your website.
However, I am not able to connect to the CVS server (as anonymous).
/ Is there a way I can get the source jar of next release (0.9 / 2.0)?
/
Thanks,
--ajay
Posted by Ajay Koranne on September 19, 2003 at 08:58 PM MDT #
Posted by Jasmin Mehta on September 22, 2003 at 09:29 PM MDT #
Posted by Matt Raible on September 23, 2003 at 11:47 AM MDT #
I came to know from one of the email from display-tag user group that Ver. 1.0-b2 is out. Can you pl tell me that if this version has a facility to give static header and scrollable body for the table - that works on IE?
Its very urgent requirement of my project.
Pl let me know how can I fix that?
Thanks
Jasmin
Posted by Jasmin Mehta on December 04, 2003 at 02:39 PM MST #
<strong>How can I display static headers in a table, so that headers remain visible while user scrolls the table body?</strong>
You can do that simply using css, adding an height and the overflow: scroll property to the tbody element. Unfortunately this will work perfectly in Netscape/Mozilla, but not in Internet Explorer. If you want to do something similar in IE you will probably need to play with javascript. The table tag can't be used to display a split table (a table with headers only and a table with a body), sorry. This is simply because a correct, xhtml, accessible table MUST have headers and a body.
Posted by Matt Raible on December 04, 2003 at 04:25 PM MST #
Posted by Ajay Koranne on December 04, 2003 at 05:29 PM MST #
Posted by Matt Raible on December 04, 2003 at 08:41 PM MST #
Posted by Jesus romero on January 10, 2004 at 02:05 AM MST #
Posted by Manish Jain on February 10, 2004 at 12:47 PM MST #
Posted by Matt Raible on February 10, 2004 at 12:59 PM MST #
Posted by Torgeir on May 05, 2004 at 10:17 AM MDT #
Posted by angela_gs on February 05, 2007 at 02:39 AM MST #
I know my reply is very late.
I have read some where that giving position:relative to tr and to giving overflow:auto to a div enclosing the table will kind of make it work in IE. I think it makes the tr to behave as if it is static.
Posted by Akhil on May 28, 2008 at 11:13 AM MDT #
Posted by krishna on August 26, 2008 at 04:41 PM MDT #
Posted by lesele on October 18, 2011 at 05:20 AM MDT #