You need to sign in to do that
Don't have an account?
Mak One
I want column of pageBlockTable to be clickable so that I can run a javascript method
Like when we click on column of pageblockTable to popup to filter or sort will come.
<apex:pageBlockTable value="{!wrapKey}" var="wrapKey1" width="20%" >
<apex:column headerValue="{!currField}" width="5%" onclick="showFilterPopUp(this)">
<apex:outputField id="outputId" value="{!wrapKey1.sObj}" rendered="{! readOnly}"/>
</apex:column>
</apex:pageBlockTable>
Here I want to click on Column header with apex:column where onclick is not working.
How to achieve it?
<apex:pageBlockTable value="{!wrapKey}" var="wrapKey1" width="20%" >
<apex:column headerValue="{!currField}" width="5%" onclick="showFilterPopUp(this)">
<apex:outputField id="outputId" value="{!wrapKey1.sObj}" rendered="{! readOnly}"/>
</apex:column>
</apex:pageBlockTable>
Here I want to click on Column header with apex:column where onclick is not working.
How to achieve it?
Use code as below for your reference: Ref link for more info: http://salesforcesource.blogspot.com/2008/11/adding-sorting-capability-to.html