-
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, 6 months ago by Shubham.
Log In to reply.
Popular Salesforce Blogs
Salesforce Winter '17 Release
Well email notification from Salesforce has landed in my inbox about Winter'17 Release. Some pointers: Salesforce Org will be upgraded to new version within a…
Salesforce Marketing Cloud Automation Studio and Its Activities
Automation Studio Automation Studio is a very awesome tool in Salesforce Marketing Cloud. One can perform lots of tasks via automation studio. It helps us…
How To Be A Salesforce Developer?
From 2014, unarguably the best way to start learning Salesforce is through Trailhead. Think of it as the best university to enroll yourself in for…
Popular Salesforce Videos
Free 5 Day Salesforce Challenge!
To access the signup form head over to www.talentstacker.com/Salesforce TalentStacker Podcast Salesforce Episode: https://talentstacker.libsyn.com/how-to-earn-60k-100k-a-year-within-6-months-without-a-college-degree-say-what-salesforce-career-development-path-with-bradley-rice Do you already have a job as a Salesforce Professional and…
Salesforce Video Wall
Salesforce approached Obscura with the opportunity to create imaginative media for the 107’ long LED video wall in the lobby of their flagship San Francisco…
Difference between Workflow Rules and Process Builder in Salesforce
This video explains the difference between workflow rules and process builder. It is divided into four parts : 1. When to use Workflow 2. When…