-
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, 6 months ago by
Shubham.
-
This discussion was modified 10 years, 6 months ago by
Log In to reply.
Popular Salesforce Blogs
5 Reasons to Use Salesforce Service Cloud for Your Nonprofit Contact Center
1. Service Cloud Supports a Wide Variety of Contact Center Needs Administration Cloud is worked to help contact focuses through omni-channel, self-administration and live interchanges,…
Salesforce Lead Management: Tips And Best Practices
Customer relationship is a very important business segment. We will tell you about such a quality tool as Salesforce. Make Your Feedback Perfect - Salesforce…
How to connect Salesforce with .NET console application using SOAP API?
This article mainly focusing on the basics about the integration with Salesforce and .NET console application via Salesforce SOAP Api. So I would prefer to…
Popular Salesforce Videos
Campaigns in Salesforce | Salesforce Tutorial
Salesforce describes campaigns as “a marketing tactic (or series of tactics) that are designed to achieve specific goals such as increased revenue, leads, adoption, etc.”…
Introduction to Creating and Using Salesforce Reports
Every Salesforce user can benefit from working with Salesforce Reports. We often say that one of the best Salesforce features is that "...even mere mortals…
Salesforce Pay Expectations $$$ US and UK
Do you agree or disagree with these numbers? How do you think Mason Frank could have surveyed differently? In this video, Brad discusses just how…