Support Article
Repeating Grid with paging pxCheckBox Select All does not work
SA-7634
Summary
An application developer is designing a repeating grid in the application with pagination enabled and the Pega-provided Select All UI control to select all records present on the current page. In header labels, the pxCheckBox control is added to select all records. When application users select the check box on Page 1 of the repeating grid, Select All works as expected. However, when users navigate to Page 2 or to subsequent pages, the check box is displayed as selected by default, but the records are not selected. To select all records on Page 2 and subsequent pages, users have to clear the check box and then select the check box every time.
Error Messages
Not Applicable
Steps to Reproduce
- Create a repeating grid with pagination enabled and the source as a page list property.
- Place a check box in the header to provide Select All functionality.
- Run the application, using the repeating grid and paging from the first page to the subsequent pages.
Root Cause
pxCheckBox Select All does not work with pagination in repeating grids. This functionality is not supported because it negatively affects performance.
Resolution
Perform the following local-change to work around the product limitation:
In pyPregridUpdate, clear the property pointing to check box in header.
In Step 10 of @baseclass • pyPreGridUpdate, add the following line to the code:
tools.findPage(<Page name>).getProperty(<Property associated with the header checkbox>).setValue("false");
Example: tools.findPage("pyWorkPage").getProperty("pyTemplateCheckbox").setValue("false");
Published September 21, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.