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

how to fix a header of apex column
Hi,
I need that my column header value in a pagebloack table in vf page should be fixed while scrolling and viewing data.
How to do this?
Thanks in Advance!
I need that my column header value in a pagebloack table in vf page should be fixed while scrolling and viewing data.
How to do this?
Thanks in Advance!
<apex:outputPanel id="panelId" style="height:180px;width:100%;overflow:auto;}" layout="block"> Put your code block here
</apex:outputpanel>
Thanks
Shaijan
I want my my column headers of a page block table to be fixed..
for e.g. Contact Name, Email ID, Phone Number..
This code is not working
Contact Name, Email ID, Phone Number.. should be fixed at their position..
You will have to achieve this using jQuery.
Check out the link below:
http://salesforce.stackexchange.com/questions/1892/how-do-i-support-scrolling-and-lock-freeze-the-header-row-of-a-pageblocktable
Hope this will help.
--
Regards,
Grazitti Team
Web: www.grazitti.com
Email: sfdc@grazitti.com
Hi Shaijan,
Please find below my code:
-----------------------
<apex:page >
<apex:form>
<apex:pageBlock controller = "contactDataController">
<apex:outputPanel id="panelId" style="height:180px;width:100%;overflow:auto;}" layout="block">
<apex:pageBlockTable value="{!contactList}" var="item" title="Contact List" id="table123" >
<apex:column value="{!item.firstname}"/>
<apex:column value="{!item.lastname}"/>
<apex:column value="{!item.email}"/>
<apex:column value="{!item.phone}"/>
</apex:pageBlockTable>
</apex:outputPanel>
</apex:pageBlock>
</apex:form>
</apex:page >
Are you able to resolve this? I am facing the similar issue to fix the column header of table in vf.
I forgot the link from where I got the jquery resources. if it is really urgent for you then send me your email Id. I will send you the code and jquery resources which I'm currently using.
Satyajit