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
DipeshDipesh 

pageBlockSection columns Settings

I want to span second <apex:outputPanel > to two colums .

 

<apex:pageBlock id="demoid" title="Demo Block"  >

             <apex:pageBlockSection columns="3" >

                     <apex:outputPanel > TextLine1 </apex:outputPanel >

                     <apex:outputPanel > abcd abcd abcd abcd abcd</apex:outputPanel >

             </apex:pageBlockSection>

</apex:pageBlock>

 

currentyl its shown as below:

 

---------------------------------------------------------------------

 TextLine1           abcd abcd abcd.    (EmptySpace)

                              abcd abcd           

---------------------------------------------------------------------

 

I want as below :

 

---------------------------------------------------------------------

 TextLine1          abcd abcd abcd abcd abcd             .

---------------------------------------------------------------------

 

 

Thanks

Dipesh

 

 

 

 

 

 

Best Answer chosen by Admin (Salesforce Developers) 
themattythematty

instead of using outputPanel use <td>TextLine1</td> and <td colspan="2">abcd abcd abcd abcd abcd</td>

 

It's better to use HTML where possible as it will save on your view state.

All Answers

admintrmpadmintrmp
Create a third outputPanel...
DipeshDipesh

i want to merge last two colums.  If i add third outputPanel then output will be same.

admintrmpadmintrmp
Oh, I've never known a possible way to do this.
themattythematty

instead of using outputPanel use <td>TextLine1</td> and <td colspan="2">abcd abcd abcd abcd abcd</td>

 

It's better to use HTML where possible as it will save on your view state.

This was selected as the best answer
DipeshDipesh

yes - thematty ...you are right, but have to remove apex:pageBlock and apex:pageBlockSection ... instead of  i wrote as below ... 

 

<table width="100%">

     <tr>

                     <td > TextLine1 </td>

                     <td colspan="2"abcd abcd abcd abcd abcd</td>

     </tr>

</table>