-
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 9 years, 9 months ago by
Shubham.
-
This discussion was modified 9 years, 9 months ago by
Log In to reply.
Popular Salesforce Blogs
Powering Real-Time Two-Way Synchronization Between Salesforce and Jira
In today’s business environment, efficient data management is crucial for any successful company, and CRM systems have become essential tools among businesses of all sizes.…
Benefits of Salesforce CRM That Will Transform Your Business
Today any growing business firm requires a to manage and retain customers reliably and seamlessly. When it comes to CRMs, is the most reliant and…
4 Reasons Why You Should Use Salesforce Chatbots in 2022
Now that we’ve entered a new year, you have an entire year of growth ahead of you. To maximize your business’ potential this year, it’s…
Popular Salesforce Videos
Salesforce Lightning Design System (SLDS) and Components
The Salesforce Lightning Design System (SLDS) helps you build applications with the look and feel of Lightning Experience without writing a single line of CSS.…
Learn About Types of Sandboxes in Salesforce
A sandbox is a copy of your organization in a separate environment that you can use for a variety of purposes, such as testing and training.…
How To Build a Kanban View Using LWC without APEX | Real-Time Project in LWC | Salesforce
In this project, you will learn 60% of the LWC. You gonna learn the following topics 1. How to create a lightning Page 2. How…