function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AttackAttack 

Word wrapping PageBlockTable column headers ..

Hello folks,

I have a requirement to word-wrap and display the column header names of a pageBlockTable. Any idea how to achieve this ? Thanks.

 

 

 

Best Answer chosen by Admin (Salesforce Developers) 
VisualForceVisualForce

Hi...

 

<apex:column > <apex:facet name="header">Select<br/> Checkbox</apex:facet> <apex:inputCheckbox value="{!Tabl.chk}"></apex:inputCheckbox> </apex:column>

 

All Answers

AttackAttack
Any one has any hints ?
VisualForceVisualForce

Hi...

 

<apex:column > <apex:facet name="header">Select<br/> Checkbox</apex:facet> <apex:inputCheckbox value="{!Tabl.chk}"></apex:inputCheckbox> </apex:column>

 

This was selected as the best answer
Arun BalaArun Bala
Thanks Visualforce. That worked :-)
HoppertunityHoppertunity

Can somebody explain how this works. I don't quite follow how this solution makes headers word-wrap. I require a solution whereby all the column headers in a block table need wrapping due to their text length to make a table with equal column widths.

sfdcFanBoysfdcFanBoy

There's an easier solution to this.  You need to use white-space: normal.

https://sfdcfanboy.com/2018/03/27/a-tip-a-day-38-pageblocktable-wrap-text/

April Robinson 16April Robinson 16
Neither one of these solutions works at all.  This must be old info.