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
- Include Radio Button in Grid
- Configure the grid's refresh row condition to be on change of value mapped to the radio button.
- 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
- 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:
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.