You need to sign in to do that
Don't have an account?
crocodile
Unable to change the column width in a table..
Hi,
Am trying to change the column width in a table.
Code:
<apex:page standardController="Address__c" wizard="false"
recordSetVar="addrSet">
<apex:pageBlock >
<apex:pageBlockTable value="{!addrSet}" var="a"
columnsWidth="10px, 10px, 10px">
<apex:column value="{!a.name}" />
<apex:column value="{!a.City__c}" />
<apex:column value="{!a.Mobile__c}" />
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
The widths are remained same even though columns widths are: 100px/1000px/1opx or not used.
Is there any other attributes i need to pass?
Thx in adv,
VNath
change the column width in <apex:column/> tag
ex:
<apex:column width="100px"/>
Regards,
Shravan
Thanks Shravan for the reply.
The table has 3 columns. when i applied width attribute for 2 columns: Working
but when applied for all the columns : not working.
working code:
Got.
If the page rendering format is html and when we apply width for all columns it is not working. But if the rendering is html: works.
Thx,
VNath
Hi guys,
i need help regarding pageblock table column width must be fixed. It changes automatic by the values in the table
Thanks,
sreenath
Hi Sreenath,
Use width="100px" attribute in the <apex: column> tag.
ex:
<apex:column value="value" width="size in px">
Thx,
VNath