You need to sign in to do that
Don't have an account?

Column header can not be scroll down in pageblock table,
Hi all,
I have loaded account details in visualforce page through pageblock table, if data exceeds the page it has to show scroll down, if i scroll down the column headers should not be scroll down.
Bellow is my code. and what lines i need to add for bellow code.
---------------
<apex:page standardController="Account" recordSetVar="rcst">
<apex:form >
<apex:pageBlock title="Accounts" >
<div style="overflow: auto; height: 200px;" layout="block" position ="fixed">
<apex:pageblockTable value="{!rcst}" var="a" headerClass="headerStyle" width="100%">
<apex:column value="{!a.Id}" ></apex:column>
<apex:column value="{!a.Name}" ></apex:column>
<apex:column value="{!a.type}" ></apex:column>
<apex:column value="{!a.industry}"></apex:column>
<apex:inlineEditSupport />
</apex:pageblockTable>
</div>
</apex:pageBlock>
</apex:form>
</apex:page>
Thanks.
I have loaded account details in visualforce page through pageblock table, if data exceeds the page it has to show scroll down, if i scroll down the column headers should not be scroll down.
Bellow is my code. and what lines i need to add for bellow code.
---------------
<apex:page standardController="Account" recordSetVar="rcst">
<apex:form >
<apex:pageBlock title="Accounts" >
<div style="overflow: auto; height: 200px;" layout="block" position ="fixed">
<apex:pageblockTable value="{!rcst}" var="a" headerClass="headerStyle" width="100%">
<apex:column value="{!a.Id}" ></apex:column>
<apex:column value="{!a.Name}" ></apex:column>
<apex:column value="{!a.type}" ></apex:column>
<apex:column value="{!a.industry}"></apex:column>
<apex:inlineEditSupport />
</apex:pageblockTable>
</div>
</apex:pageBlock>
</apex:form>
</apex:page>
Thanks.
Supporting files
1. Base css - https://raw.githubusercontent.com/benjaminleouzon/tablefixedheader/master/css/base.css
2. Theme css - https://raw.githubusercontent.com/benjaminleouzon/tablefixedheader/master/jquery-ui/css/flick/jquery-ui-1.8.4.custom.css
3. FixedHeader Js - https://raw.githubusercontent.com/benjaminleouzon/tablefixedheader/master/javascript/jquery.fixheadertable.js
All Answers
Supporting files
1. Base css - https://raw.githubusercontent.com/benjaminleouzon/tablefixedheader/master/css/base.css
2. Theme css - https://raw.githubusercontent.com/benjaminleouzon/tablefixedheader/master/jquery-ui/css/flick/jquery-ui-1.8.4.custom.css
3. FixedHeader Js - https://raw.githubusercontent.com/benjaminleouzon/tablefixedheader/master/javascript/jquery.fixheadertable.js
(Its very urgent)
Thanks for the best answer and how can i achive this without using javascript. actually I want to implement this requirement without using javascript.
Regards,
Venky.
Just following up on the above mentioned thread. We used the above mentioned code and facing some issues. Can you please assist us for the same?
Controller:
Any updates on this please?
Thank you
Regards
Ramesh