-
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, 7 months ago by Shubham.
Log In to reply.
Popular Salesforce Blogs
Salesforce Duplicate Management Became Easier
Peeklogic Smart Duplicate Manager. Salesforce Duplicate Management Became Easier Peeklogic helps to provide configure, modernize, and customize solutions for the Salesforce business. Peeklogic uses development…
Pump Up Your Revenue: Retain Customers With Salesforce!
Advancement in technology has led to fierce competition. Customer retention has become one of the major headaches in the industry. Teams slog to draw traffic to the…
Einstein Analytics: Data Sync Functionality Explained
Data Sync is a process that helps to ensure that the data in your Salesforce org is ready to be used in Einstein Analytics. This…
Popular Salesforce Videos
Visualforce Training for Beginners : Visualforce Tags in Salesforce
This video helps you to learn following topics: Visualforce Tags Standard Controllers Associating a Standard Controller with a Visualforce Page What are action methods? Action…
Salesforce Care Response Solution Demo
The Salesforce Care Response Solution is available at no cost to any emergency response teams, care management teams, health systems, health insurers, and other healthcare…
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…