-
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, 7 months ago by
Shubham.
-
This discussion was modified 9 years, 7 months ago by
Log In to reply.
Popular Salesforce Blogs
Salesforce Development Vs. Traditional Development
The competitive nature of present living standards has always kept every individual in the race for success. The urge to grab the crown and be…
Learn Salesforce Einstein – Chapter 3 (Einstein Key Setup)
Do you have a key? If you have key then upload your key file here. If you don't have key then follow the below steps.…
Pass Salesforce AppExchange Security with Ease
Kizzy Consulting has worked on creating solutions by integrating several applications with Salesforce in the past year. This article will definitely help you prioritize steps…
Popular Salesforce Videos
Introducing the New gRPC-based Pub Sub API | Salesforce Developer Quick Takes
Learn about the Pub Sub API, a new gRPC-based API that exposes the power of the Salesforce Event Bus. Discover the technology, its use cases,…
Salesforce Customer 360 Audiences Enhancements
Salesforce Customer 360 is a tool that allows companies to connect Salesforce apps and create a unified customer ID to build a single view of…
Increase ROI by Investing in People | Make Earth Your Business
The video discusses the benefits of businesses that invest in and believe in their employees, customers, and communities. Investing in employee training and upskilling programs…