-
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 ago by Shubham.
Log In to reply.
Popular Salesforce Blogs
Omni-Channel Overview in 2024
Omni-Channel is a Customer Service and console-based Salesforce feature that helps automatically route of different types of work items (such as Leads and Cases) to…
Reasons you Might Not Need a Full-Service Transformation | Salesforce Guide
Any company managing its work on Salesforce would have numerous processes and operations to perform and handle, getting its team too much occupied. In between…
How the Salesforce1 Mobile App Can Help Businesses
To understand “how the Salesforce1 mobile app can help the business”, we must first understand the how and the difference between Salesforce and Salesforce1. The…
Popular Salesforce Videos
Overview of Salesforce Development Course | Learn Salesforce Development From Scratch
In this video, Shrey has given a detailed overview of the Salesforce Development Course. You will learn the following topics from this course: Salesforce Development…
How Is Salesforce Overcoming the Rise In Generative AI?
Discover how Salesforce is harnessing the power of Generative AI to revolutionize customer experiences, streamline processes, and innovate like never before. In this extract discover…
EPC and CPQ in Salesforce Industries (Vlocity)
Enterprise Product Catalog (EPC) to configure and manage CPQ in one place. It's a guided selling experience for users to build an order. While CPQ…