You need to sign in to do that
Don't have an account?
pageBlockTable width/column width not expanding
Hi.
VF code:
<apex:pageBlockSection >
<apex:pageBlockTable value="{!accounts}" var="a" columns="3" style="font-size:25px" >
<apex:column headervalue="Customer Name" value="{!a.acc.Field3__c}" />
<apex:column headervalue="Account Name" value="{!a.acc.Name}" />
<apex:column headervalue="Comments" value="{!a.acc.NlTokki__c}" />
</apex:pageBlockTable>
</apex:pageBlockSection>
In the above there are 3 columns in the pageblockTable.
Unable to stretch or expand the above 3 columns to a full page.
I also tired with width=" " columnsWidth="" but nothing worked.
The columns are not expanding after certain size.
I need these 3 columns to displayed equally in a full page mode.
Ideas are greatly appreciated.
Hi.
Got the solution.
The problem was the <pageBlockTable> was coded inside the <apex:pageBlockSection >,so there
was a problem that columns cant be expaned.
I removed the <apex:pageBlockSection > and worked fine.
cheers
suresh
All Answers
Hi.
Got the solution.
The problem was the <pageBlockTable> was coded inside the <apex:pageBlockSection >,so there
was a problem that columns cant be expaned.
I removed the <apex:pageBlockSection > and worked fine.
cheers
suresh
For those searching for this solution depending on what you're wanting to do, try using the columns="1" attribute.
This allows the table to expand the width of the screen while keeping the pageBlockSection intact.
Thanks! Including columns="1" worked great for me.
Spot on! I tried everything possible thing to make it work.