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

Sorting on repeating grid displays incorrect values

SA-70841

Summary



Two different sections, (Sec1 and Sec2) have the same grid source and are filtered on a value. They are embedded in a single section, Sec3.
After enabling Sorting on the grid, the grid data displays incorrect values. The incorrect values display only for Editable radio buttons and text input. That is, when Grid1 is sorted, Grid2 is impacted and vice versa.


Error Messages



Not Applicable


Steps to Reproduce

  1. Create a section, Sec1 and add a grid table (Grid 1) with source as pagelist.
  2. Create a section, Sec2 and add a grid table (Grid 2) with source as the same pagelist.
  3. Use a filter on both the grids based on some value.
  4. Embed both sections in another section, Sec3.
  5. Enable Sorting on both the grids.
  6. Sort Grid 1 multiple times and check Grid 2. The values of the radio input is impacted or another row is added.


Root Cause



The configuration was incorrect.
When a Sort action is performed on the first grid, which is editable, the values are posted to the server. Hence, the Clipboard has the modified values and sorted. 
However, the second grid is not refreshed. Hence, the client indexes are stale (that is, initial index 1 changes to 7 after the first grid is sorted). When sorting is applied on the second grid, the values are posted to the server and incorrect indexes are updated.


Resolution



As a local-change, use different property sources for the grids.


 
Suggest Edit

Published February 22, 2019 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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