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

Row does not display in previous position on refresh

SA-86072

Summary



Row does not display in its previous position when the 'Allow refresh on update' checkbox is selected.


Error Messages



Not Applicable


Steps to Reproduce

  1. Configure 'Allow refresh on update' on an editable grid.
  2. Source the grid with more than 50 rows.
  3. At runtime, drag the scrollbar down.
  4. Edit any row (check the position with respect to the scrollbar). After a refresh, the scrollbar moves up. The initial position of the row his changed while editing it (the row).


Root Cause



This behavior is as per Pega product design.


Resolution



Here's the explanation for the reported behavior:

Grid refresh occurs in order to update any added or deleted items in the grid. As a result, the height and width is recalculated and the grid automatically updates its size based on the content.
Since, this is an internal refresh on the grid, the focus of the element is retained by using the browser's Focus method and the browser displays the focusable element. The Focus method attempts to display the element in the available viewport.

In the second case, when the rows move to the bottom, the focused element is available in the first visible viewport. Hence, the scroll need not occur.

There are functional limitations when maintaining the initial scrollbar position. This affects the row updates and the grid itself loses its resizing capability.

Published December 2, 2021

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