Support Article
Value on the grid is lost when the current row is refreshed
SA-71942
Summary
Values are entered in the fields, in the repeating grid, to post them to the Clipboard and the current row is refreshed on change of the field. However, the value entered initially does not display on the UI and is not posted to the Clipboard.
Error Messages
Not Applicable
Steps to Reproduce
- Configure a grid with input fields.
- On the fields, configure an onChange to refresh the current row.
Root Cause
When an editable control is used any where in the section, it is registered on the server. This is because any form submission from that section can be mapped to one of the registered controls. The process of registering controls takes place during generation. In this case, the registration of the controls is affected.
The theory is that another table layout or a repeat layout is present which is bound to the same page list as the grid where the issue occurred. This other layout interfered with the registration done by the controls in the current grid layout, hence resulting in the issue. By defer loading the grid layout independently, the runtime execution of this grid from the rest of the sections occurs separately and hence allowed the editable property registration to occur independently.
Resolution
Perform the following local-change:
- Add the grid in a dynamic layout (if it is not already inside one).
- In the dynamic layout's Property panel, check the 'Defer load contents' option.
Published May 22, 2019 - 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.