You need to sign in to do that
Don't have an account?
Rehan Dawt
Sorting on Click of Column Header
Hi,
Can we sort the column of pageBlockTable on click of Column Header whitespace not on the Text.
I have implemented by clicking on Text. Is there any way that on click on the white space we can sort.
Is there any work around Please Reply.
Thanks.
Rehan Dawt.
Try changing the column header from text to a button. Make the button white and it looks like whitespace.
I did something similar here:
<style>
.HeaderButton1
{
color:black;
background-color:#E1EEFF;
height:50px;
width:150px;
border-width:0px;
background-repeat:no-repeat;
cursor:pointer;
}
</style>
(datatable)
<apex:column >
<apex:facet name="header">
<apex:actionStatus id="Button1Status">
<apex:facet name="start">
<apex:outputText value="Working..." />
</apex:facet>
<apex:facet name="stop">
<apex:commandButton value="Entered" action="{!actionButton1}" status="Button1Status"
id="HeaderButton1" styleClass="HeaderButton1" />
</apex:facet>
</apex:actionStatus>
</apex:facet>
<apex:outputText value="{!oo.Entered}" />
</apex:column>
Hi,
Sorry it didn't work. It is not showing proper. For that i have to fixed the width of column as well as button.
Any other solution. ?