-
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, 10 months ago by
Shubham.
-
This discussion was modified 8 years, 10 months ago by
Log In to reply.
Popular Salesforce Blogs

Top Salesforce Trends to Watch Out in 2021
2020 year has been a challenging year for everyone no doubt. The pandemic, global lockdown, and economic crisis have affected everyone’s personal lives and the…

How A Leading Equipment Manufacturer Boosted its Sales Potential by Adopting Advanced Salesforce CPQ Solutions
Decades ago, organizations relied on legacy systems to meet their CPQ requirements. Software systems have advanced significantly since then. Today, we have cutting-edge SaaS platforms that…

Types of Collections in Apex Salesforce | Explained
In Apex, Collection is a group of individual objects represented as a unit (unit). Sometimes you need to group multiple items in a single unit.…
Popular Salesforce Videos
All About Salesforce List Views
List Views are an often unused tool in the Salesforce toolshed. With List Views you can quickly see particular segments of your data. ... List…
How to Subscribe Salesforce Report in Lightning Experience?
Subscribe Report : We can configure any Salesforce report to run Daily, Weekly or Monthly as HTML email to your Salesforce org. users. Advantages of…
What are Apps in Salesforce?
Apps in Salesforce are Service, Marketing, Content, Salesforce Chatter, Service Console, Salesforce CMS, Test, Sales, Salesforce Scheduler Setup, Community, Sales Console, Lightning Usage App, Bolt…