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

Radio Buttons on Grid

SA-18803

Summary



Radio Buttons configured in a repeating grid are not posting all values to the clipboard correctly, when a row refresh condition is configured on change of the property mapped to the radio button.  

Only the last clicked row has its value posted leading to multiple true values on the clipboard.



 

Error Messages



Not Applicable.


Steps to Reproduce

  1. Include Radio Button in Grid
  2. Configure the grid's refresh row condition to be on change of value mapped to the radio button.
  3. Select radio button in first row,then in second row, then in third row, on UI it displays just third row radio button as selected
  4. However on clipboard values for radiobutton of row 1,2 and 3 all show as true


Root Cause



Not Applicable.
 

Resolution



Perform the following local-change:
  1. In grid property panel in "Operations" tab select "Run activity before grid update" and specify an activity.

     
      Note: This activity must be present in row class and @baseclass. 
      2. In first step of activity iterate through list and set the radio buton property to false in all records.  Use a when condition to check the gridAction parameter is REFRESHROWS, that is, the grid update that is required to act on is the row refresh invoked by the change to the radio button property.  
​This is a standard Pega parameter that is set automatically so one must add it to the parameters tab.
      3. Set the current radio button property to true. 



 

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

85% 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