I have requirement to implement select all function in table layout that respects pagination when I click on checkbox of select all I need to select current navigation pages
Table source is editable clipboard data page
Any recommendations?
I have requirement to implement select all function in table layout that respects pagination when I click on checkbox of select all I need to select current navigation pages
Table source is editable clipboard data page
Any recommendations?
@ahmeds11 To implement a “Select All” checkbox that only selects items on the current page of a paginated table (and not across all pages), you can use a local property (e.g., .isSelected) on each row and write a custom data transform or client-side event to loop through only the items displayed on the current page. Since the table uses an editable clipboard data page as its source, Pega renders only the current page’s records in the DOM. You can add an onClick event to the header checkbox (Select All) that sets the .isSelected property to true or false only for visible rows, which you can access via a refresh section or a small activity that modifies just the currently loaded items. Avoid using a top-level page list loop unless you track the current page index, as that would select items across all pages. This ensures that only items visible on the current UI page are selected.
@Sairohith I have a data transform configured on grid header select all checkbox in the Data transform iam looping through the results and setting property pyselected to true but it is setting true to all list in the grid. Not to current page which iam seeing the data currently for eg if iam on second page it should select only second page results
can you share the configuration what you have used I can give a try with that.