• SFDC AdminDev 10
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
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.