I have a pop-up display a table with some columns (Name, ID) of Accounts for example, I want to display additional information of the selected account when I click on specific row.
I used something like this, but I must click on a column not row , and does not get the correct data.
<apex:actionFunction name="readCell" action="{!readCellMethod}">
<apex:param name="rowID" value="" assignTo="{!clickedRowId}"/>
</apex:actionFunction>
<apex:pageBlockTable value="{!account}" var="acc">
<apex:column headerValue="ID" value="{!acc.Id}" />
<apex:column headerValue="Name" value="{!acc.Name}" onclick="readCell('{!acc.Id}')"/>
</apex:pageBlockTable>
Best Answer
Here's an option that still keeps your pageBlockTable. Add your jquery resource or link to it. Then, add this to head...
Add the onRowClick to the pageBlockTable and add a styleClass to your column.
Woo-hoo! First post on stackexchange...