I'm having a requirement to highlight the apex:column
in apex:pageblocktable
when a particular record is selected.
So I kept a checkbox which is disabled and when I select a record, the disabled field should become true. How can I achieve this?
Here is the code:
<apex:pageblockTable value="{!accList}" var="acc" >
<apex:column headerValue="Action" ><apex:inputCheckbox value="{!acc.Check_Box__c}" disabled="true" style="color:grey;backgroundcolor:grey;" /></apex:column>
<apex:column headervalue="Group #" ><apex:commandlink value="{!acc.AccountNumber}" action="{!ViewAccRecord}" rerender="thetable"><apex:param id="AccId" name="AccViewId" assignto="{!AccRecId}" value="{!acc.id}"/></apex:commandlink></apex:column>
</apex:pageblockTable>