-
Add 'Select All' functionality in pageBlockTable
How can i add 'Select All' 'Deselect All' functionality to pageblocktable which is iterating a wrapper list (checkbox and list of products). Like when inputcheckbox with id="mainbox" is checked all the inputcheckbox with id = "checkbox" should get selected.
<apex:pageBlockTable value="{!wrapProductList}" var="prd" title="Products" id="prdtList">
<apex:column >
<apex:facet name="header"><apex:inputCheckbox id="mainBox"/></apex:facet>
<apex:inputCheckbox value="{!prd.isSelected}" id="checkBox"/>
</apex:column>
<apex:column >
<apex:facet name="header">Product Name</apex:facet>
<apex:outputText value="{!prd.prdt.Name}"/>
</apex:column>
<apex:column >
<apex:facet name="header">Product code</apex:facet>
<apex:outputText value="{!prd.prdt.ProductCode}"/>
</apex:column>
<apex:column >
<apex:facet name="header">Sales Price</apex:facet>
<apex:outputText value="{!prd.prdt.UnitPrice}"/>
</apex:column>
</apex:pageBlockTable>-
This discussion was modified 8 years, 10 months ago by
Shubham.
-
This discussion was modified 8 years, 10 months ago by
Log In to reply.
Popular Salesforce Blogs

The Role of Salesforce Consultants in Digital Transformation: Key Insights for 2024
As businesses navigate the evolving landscape of technology, digital transformation has become a critical priority for staying competitive and relevant. Salesforce, a leading customer relationship…

How to Find a Salesforce Partner: Guide on Evaluation Criteria & Cost Range
Despite Salesforce having powerful out-of-the-box solutions and features, at certain stages of the business lifecycle, it requires customizations, integration, and other configurations to be legally…
Popular Salesforce Videos
Generative AI: What Diverse Data Types Can It Create? | Salesforce
Imagine a technology that can take various types of data – from text and images to music and even beyond – and create something entirely…
GS DevOps Mate: Your Free Flexible Toolkit for Faster & Smoother Salesforce Deployments
Our webinar about GS DevOps Mate: A free, open-source, CI/CD platform agnostic toolkit! Our host is Rohan Gore a Technical Architect here at Groundswell who…
Are they secure enough ? Web to Lead Forms | Validations | SPAM | CAPTCHA | Salesforce Tutorials
Are you using web to lead forms ? Do you think it's secure enough ? In this video you will get all your answers. And…