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
mentulamentula 

checkbox with pagination

 

Re: checkbox with checkall and pagination
 

Hi Salesforce folks

I need functionality of wrapper class with checkall functionality with pagination 

 

Please help me with the above query I am unable continue with furthur implemetation any kind of help is much appreciated .

 

ex:

 

 

Hi Salesforce folks

BharathimohanBharathimohan

Hi,

 

Try this,

 

<apex:column >
                <apex:facet name="header">                    
                    <apex:outputPanel >
                        <apex:inputCheckbox onclick="checkAll(this)" style="margin-left:11px;margin-right:11px" />
                        <apex:outputText >Action</apex:outputText>
                    </apex:outputPanel>    
                </apex:facet>

<apex:inputcheckbox value=........./>             
</apex:column>

 

 

<script>
    function checkAll(c)
    {
        var inputElem = document.getElementsByTagName("input");
        for(var i=0; i<inputElem.length; i++)
        {
            
            inputElem[i].checked = c.checked;
        }
    }
</script>

 

Please mark this post as solved, if it helps you.

 

Regards,

Bharathi

Salesforce For All

 

 

 

mentulamentula

Thank you for Replay me ..

 

 

but when we add pagination to this we move to next page and come back to first page checkboxs not holding checkall  functionality will be un-checked how to  make it as checked when we moving first page next page ....

 

 

can please help me to do this

 

 

thamks in advance