-
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 10 years, 4 months ago by
Shubham.
-
This discussion was modified 10 years, 4 months ago by
Log In to reply.
Popular Salesforce Blogs
Learn All About Salesforce Multi-Factor Authentication
Do you know the reason users are switching to iOS over Android? UI and UX are great. However, security is the primary reason. We live…
How Salesforce Developers Can Help Your Business?
Salesforce, in its name, is pretty telling at saying what it is best at. However, there is a huge bridge to cross between implementing Salesforce…
Dreamforce 2024: How It Will Affect Your Business Plan and Strategies?
Are you ready to change the way you do business? Revolutionary upgrades that will change the way you use Salesforce for growth are expected to…
Popular Salesforce Videos
Use Case Hierarchy to Link Cases in Salesforce
Want to link your cases, so you and your team have a complete view of what’s going on with a customer? Do you want to…
Salesforce Winter '22 Product Release Highlights!
Watch this video to learn about the Salesforce Winter '22 Product Release Highlights. 0:00 - Winter Release Preview 0:10 - Pipeline Inspection Enhancements 0:23 -…
How to Find More Prospects, Win More Deals, and Keep Customer Happy with Salesforce Essentials
Watch this video to learn how to minimize busy work and empower your sales and support teams to spend more time closing deals and engaging…