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
hacksawblade16hacksawblade16 

Help:Insert checkboxes horizontaly.

How can i insert checkboxes horizontally in the header of a column???

SurekaSureka

Hi,

 

Make use of <aoex:selectCheckboxes>, use layout attribute  and specify whether you want horizontal or vertical.

 

Thanks

 

hacksawblade16hacksawblade16

Hi

I want something like this.You can see the IsAcive column header along with checkbox right.I want it like that.

SurekaSureka

Hi,

 

Try this:

 

<apex:column>
        <apex:facet name="header"> Is Active? <apex:inputCheckbox >
     </apex:inputCheckbox></apex:facet>

<apex:inputCheckbox value="{!col.val}" />
     </apex:column>

 

 

You need to write seperate Java script to select all the checkboxes, once the header checkbox is checked.

 

you can refer to this example for that - http://wiki.developerforce.com/page/Checkbox_in_DataTable

 

Thanks

hacksawblade16hacksawblade16
Thank you I will try it and get back to you :)