You need to sign in to do that
Don't have an account?
SFDC coder
How to get fixed headers for page block table?
Hi all i have a scenario where in i am trying to make my header row of the pageblock table fixed can anyone help on this?
below is my code
Any help would be appreciated
thanks
below is my code
<apex:page> <apex:outputPanel id="tablePanel" style="overflow: auto; height: 200px;" layout="block"> <apex:pageBlockTable value="{!wrapperLst}" var="data" id="table" > <apex:column headerValue="Action"> <apex:inputCheckbox value="{!data.isChecked}"/> </apex:column> <apex:column headerValue="Name"> <apex:facet name="header"> <apex:commandLink value="Product Name" style="text-decoration:underline" reRender="table" action="{!doSorting}"> <apex:param assignTo="{!sortParam}" value="name"/> </apex:commandLink> </apex:facet> <apex:outputField value="{!data.prodItem.name}"/> </apex:column> ....... .... </apex:pageBlockTable> </apex:outputPanel > </apex:page>
Any help would be appreciated
thanks
Check the below kinks.
http://www.redkitetechnologies.com/2013/03/floatingsticky-headers-for-visualforce-pageblocktable/
http://iwritecrappycode.wordpress.com/2013/03/05/floatingsticky-headers-for-visualforce-pageblocktable/
thanks for our reply
well i have checked these links and they have used jquery which i am trying to avoid...is there any other solution thats possible?
thanks
Second way is using below code
<tbody style="display: block; overflow-y: auto; height:100px;">
Reference
https://apexfixheader.blogspot.com/