Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

  1. Create a repeating grid with pagination enabled and the source as a page list property.
  2. Place a check box in the header to provide Select All functionality.
  3. 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

Was this useful?

40% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us