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

Issue with Paging and Sorting in Grid

SA-5445

Summary



The reported is an UI issue in vPRPC63SP1 related to Grid Repeat Sorting issue. 

When Paging is enabled in a Grid Repeat Layout (example with Page 1 on X), at first everything is okay, but then when trying to sort any column, only the first row is left displayed (all the rows appear sorted for a flicker and then only the first on is left).

At first everything is okay




But then when trying to sort any column, only the first row is left in the list.


Error Messages



None. When the section first displays, all the rows in the grid displays as expected. But then when trying to sort any column, only the first row is left displayed and all the other rows disappears.


Steps to Reproduce



This issue can only be replicated with RepeatGrid that is deeply nested in more than 3 levels. With this UI configuration, the sorting will not work correctly as seen in Summary Screenshots.

Root Cause



Analyzed the provided application and could see the RepeatGrid is deeply nested (more than 3 levels). On sorting params are referred to a parent grid. As this level of nested grids is not generally advised and sorting, paging issues in such cases will occur.


Resolution



In the same problematic section, create an identical gridlayout, but hiding all the rows by using the display:none; Inline styling. The below screenshot shows all the row 1-4 where the display:none; have been applied.



By doing so, the first gridlayout will be hidden to the user and second grid layout will be shown for user action. The sorting will also work correctly since correct sorting parameter is passed properly.

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