function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SKiranSKiran 

Selection of multiple items from table.

I have a page where depending upon certain criteria I will be searching contacts and showing them on table. Now I want to provided functionality where user would be able to select some contacts for deletion and there would be a button for deleting selected contacts. I am not sure how will I enable multiple selection of rows from table. Any pointers would be heplful. Thanks in advance.

Best Answer chosen by Admin (Salesforce Developers) 
Puja_mfsiPuja_mfsi

Hi,

You can add checkbox in front of all rows to select the particular records by using wrapper class.Wrapper class binds the different types of datatype value in one class,there are the following link which contains the good example :

 

http://wiki.developerforce.com/page/Wrapper_Class

http://cloudforce4u.blogspot.in/2013/06/how-to-use-wrapper-class-in.html

http://www.interactiveties.com/blog/2012/visualforce-wrapper-class.php

 

 

Please let me know if u have any query on same and is this post helps u plz give KUDOS by click on star at left

All Answers

Puja_mfsiPuja_mfsi

Hi,

You can add checkbox in front of all rows to select the particular records by using wrapper class.Wrapper class binds the different types of datatype value in one class,there are the following link which contains the good example :

 

http://wiki.developerforce.com/page/Wrapper_Class

http://cloudforce4u.blogspot.in/2013/06/how-to-use-wrapper-class-in.html

http://www.interactiveties.com/blog/2012/visualforce-wrapper-class.php

 

 

Please let me know if u have any query on same and is this post helps u plz give KUDOS by click on star at left

This was selected as the best answer
SKiranSKiran
Thats very helpful..thanks @Puja_mfsi