You need to sign in to do that
Don't have an account?
aadit_13
Set rows property of apex:pageBlockTable
Hi,
I want to set the rows property of apex.pageBlockTable using Javascript.
Please advice how to access properties of component in Javascript.
Thanks in advance.
Aditya
Find below a JavaScript sample code to set the row attribute in a PageBlockTable :
<apex:pageBlockTable rows="">
</apex:pageBlockTable>
<script>
document.getElementById("pageId:PageBlockId").setAttribute("row","5");
</script>
Hope this helps.
Hi Pradeep,
Thank you for you advise. I tried to follow your way but was not able to get to the result:
<apex:pageBlockTable id="CampaignHistoryTable" value="{!cmph}" var="c" rendered="{!NOT(ISNULL(cmph))}" rows="5">
This is the block table and I want to increase the number of rows using Javascript.
Could you please let me know how to code it in terms of
document.getElementById("pageId:PageBlockId").setAttribute("row","5");
Thanks in advance.
Aditya