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 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