+ Start a Discussion
hacksawblade16hacksawblade16 

help insert checkbox

How can i insert checkbox into the colum header like the IsActive  header with checkbox

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