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

Expand All for grid with expand pane

SA-6289

Summary



User wants to know if there is a way to achieve the following functionality:

In a grid layout, an expand/collapse link should be available in the header which when clicked allows details for all rows to get expanded, provided pagination is not effected. That is, i
f the user is on third page of the results and clicks on the link, the user should not be navigated to the first page.

Error Messages



No error messages. 

Steps to Reproduce



Create a button that expands and collapse rows of the reapiting grid.

Root Cause



This is not a bug in PRPC.


Resolution



This issue is resolved through the following local change: 

1. Add a button or a link in the Action Top area of the repeating grid.

2. Configure the following Event/Action sets for the button/link in the specified order

    a. Event: Click ; Action: Run Data Transform
    b. Event: Click ; Action: Refresh List

3. Create and add a Data Transform  for the 1st action – Run Data Transform

    a. Create a Data Transform (say ExpandDT) in the same ruleset as the repeating grid section.
    b. Add the following Definition
        -> For each Page In – pyWorkPage.EmployeePL
        -> Set - .pyExpanded equal to true

4.  Add the second action as Refresh List. 

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% 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