Question
IN
Last activity: 26 Sep 2017 1:48 EDT
How to put a radio buttion in repeating grid for row selection
H Team,
I am placing a radio button with propery as pyselected in grid. My Repeating grid uses a data page to populate data. At run time i dont see radio button displaying.
Please suggest. I tried in chrome and morzilla.
**Edited by Moderator Marissa to move to Product Support Community from Pega Academy; update categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Siemens
IN
Apparently radio button does not support on click events.
I found the following link.
https://community.pega.com/support/support-articles/activity-not-running-clicking-grid-radio-button
https://collaborate.pega.com/question/click-radio-button-refresh-not-working
Looks like radio button control is known to have issues when used with the grid. You might have to write a manual script to fulfill the requirement. Below is a script configured to refresh on click of a radio button. You can tweek it as per your requirement.
Alternately I would suggest using checkbox as the selection control.
Apparently radio button does not support on click events.
I found the following link.
https://community.pega.com/support/support-articles/activity-not-running-clicking-grid-radio-button
https://collaborate.pega.com/question/click-radio-button-refresh-not-working
Looks like radio button control is known to have issues when used with the grid. You might have to write a manual script to fulfill the requirement. Below is a script configured to refresh on click of a radio button. You can tweek it as per your requirement.
Alternately I would suggest using checkbox as the selection control.
<script>
var radioButtons = document.getElementsByTagName('input');
for(var i=0;i<radioButtons.length;i++)
{
if(radioButtons[i].type=='radio')
{
var attribut= radioButtons[i].getAttribute("onclick");
if(attribut=="Grids.getActiveGrid(event).setOtherRadioToFalse(this, event );")
{
radioButtons[i].addEventListener("click", function(){
pega.u.d.refreshSection("SecondSection",",");
});
}
}
}
</script>
Siemens
IN
HI,
As per my understanding, radio button control is mainly intended to select one of the options available, but checkbox is used to select/deselect value for each individual option.
Could you use a checkbox control instead and let us know the outcome ?
Agora Group, Inc.
IN
Issue is resolved . It was actually issue in RG settings. We should put the presentation as inline instead of none. But i still have another issue i gave on click activity on radio button to copy data when its selected. But on click on radio button it doesnot trigger. I tried with data transform also same issue.
Can u help
Evonsys
IN
Hi Vinay,
If you are using the version 7.2.1 the below link might be useful.
Thanks & Regards,
Rajasekhar V.
Accepted Solution
Siemens
IN
Apparently radio button does not support on click events.
I found the following link.
https://community.pega.com/support/support-articles/activity-not-running-clicking-grid-radio-button
https://collaborate.pega.com/question/click-radio-button-refresh-not-working
Looks like radio button control is known to have issues when used with the grid. You might have to write a manual script to fulfill the requirement. Below is a script configured to refresh on click of a radio button. You can tweek it as per your requirement.
Alternately I would suggest using checkbox as the selection control.
Apparently radio button does not support on click events.
I found the following link.
https://community.pega.com/support/support-articles/activity-not-running-clicking-grid-radio-button
https://collaborate.pega.com/question/click-radio-button-refresh-not-working
Looks like radio button control is known to have issues when used with the grid. You might have to write a manual script to fulfill the requirement. Below is a script configured to refresh on click of a radio button. You can tweek it as per your requirement.
Alternately I would suggest using checkbox as the selection control.
<script>
var radioButtons = document.getElementsByTagName('input');
for(var i=0;i<radioButtons.length;i++)
{
if(radioButtons[i].type=='radio')
{
var attribut= radioButtons[i].getAttribute("onclick");
if(attribut=="Grids.getActiveGrid(event).setOtherRadioToFalse(this, event );")
{
radioButtons[i].addEventListener("click", function(){
pega.u.d.refreshSection("SecondSection",",");
});
}
}
}
</script>
-
Thaveesha Cabral
Pegasystems Inc.
US
Hi,
On radio button click, there is an implicit function configured whose purpose is to set the other options on the Radio button to false.
Also, I am not sure if you are trying to post data to clipboard or where exactly you wanted to copy data. Please clarify these details.
Evonsys
IN
Hi Pavani,
Could you try with the control called pzGridRadioButton.Hope it helps.
Regards,
Rajasekhar V.
IN
ok Rajasekhar will try and update you. Thank you