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, if 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.