function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sjain1.2523113033806995E12sjain1.2523113033806995E12 

pageblocktable header

Hi,

i have applied a scroll for the pageblocktable using a outputpanel but now i want to freeze the header of the pageblock table when i do scroll. Any help would be really appreciated..

 

ScriptMonkeyScriptMonkey

If you put the entire pageblocktable in an outputpanel which scrolls, then you can't isolate the thead section anymore.

 

I've gotten closer, in that if you give the pageblocktable a styleClass="tableClass" attribute, you can reference parts of it.  Then do something like:

 

.tableClass tbody {
    height: 500px;
    overflow-y: scroll;
}

.tableClass thead, .tableClass tbody{
    display:block;
}

 

This gives me the scroll I wanted (without header scroll), but the header bar jumps left.  Maybe you could use this though and find the solution that doesn't mess up the header bar.