-
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, 8 months ago by Shubham.
Log In to reply.
Popular Salesforce Blogs
What’s New In Salesforce DX Open Beta?
Last year Dreamforce gave us another mind blowing way to manage and develop Salesforce apps in a lucid fashion throughout the entire app lifecycle. This…
Top7 Benefits of Using Salesforce CDP in 2023
Summer ’21 was the relaunch of Customer 360 Audience, which brought Salesforce CDP to the forefront. In previous articles, we explained what a CDP consists…
How Salesforce Financial Services Cloud Solves Problems For FinTech Companies
Working in the financial services industry is not an easy-breezy thing to do. It is all about managing people’s wealth and helping them plan their lives, literally.…
Popular Salesforce Videos
AppExchange Demo Jam - April 2020
Watch AppExchange apps Lifeguard Solutions, FilePulse, Vonage, Icertis, Taskray, and Salesforce Crisis App from Salesforce Labs demo their technology in three minutes for the audience…
Salesforce Service Cloud Telephony
Natterbox CTI and Telephony inside Salesforce ServiceCloud. Transform your telephony experience and empower your agents with fast and personalised support.
Tip Calculator in Lightning Component SalesForce ☁️
In this video, I will create a calculator in Lightning Component. It won't be an ordinary calculator, it will be a Tip calculator for Restaurants…