3

I have used <apex:repeat> tag to display records in table using paging. In which I have used <apex:selectCheckboxes> to select the checkbox for that particular record . What should I do to select all the records of a particular page (select all checkbox)? Can anyone provide an example for it?

enter image description here

When I select my GSS Reco's it has to select the remaining checkboxes in the current page.

  • 2
    Do one thing give any class to all <apex:selectCheckboxes> and use jquery or JS to get all the checkbox based on ClassName and make it true or false $(".ClassName").attr("checked", "true"); – Ratan Paul Jan 25 '16 at 9:57
  • @Ratan I have tried this earlier. But could not get the proper result, Since I am using apex:repeat – DOMINIC EDWARD Jan 25 '16 at 10:13
  • It should work.. Are facing any issue to implement this? – Ratan Paul Jan 25 '16 at 10:15
  • Error: Unknown property 'VisualforceArrayList.lstSAPData' @Ratan – DOMINIC EDWARD Jan 25 '16 at 10:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.