14 Responses to "Flex getting selected RadioButton value"
Hi Stephen,
I have a radiobuttongroup in a datagrid. I’m trying to the selected RadioButtonGroup for the selected row. I’ve dropped the RadioButtonGroup into my datagarid as an itemRenderer. Any ideas?
date = grdItems.???.rbgWeek.selectedValue;
Thanks!
Ryan
Stephen,
Thanks for your response.
How do I reference selectedRadioValue in my ActionScript code?
When the user clicks a button, I need to grab the value of the radiobuttongroup and do some processing. I’m hitting my head against the wall. 🙂
Ryan
Hi Stephen,
I figured it out. Thanks for pointing me in the right direction. I ended up using this – change=”text=rbgWeek.selectedValue.toString(); outerDocument.doSomething(text)”
Ryan
Would you know how to add that RadioButton Group to a datagrid? Id like to bind some data to a grid, and add a RBG to each row. Allowing the user to select some value for a large list.
thanks
Hi Ryan,
I have the same problem… and I am trying to do what you did. The problem is how will my RadioButtonHeaderRenderer will get the ‘outerDocument’ reference?
I am assuming ‘outerDocument’ is the DataGrid…
Stephen,
Thanks for this summary. I did find a problem when I tried to implement it though. You say:
Notice the {} around the groupName attributes of the RadioButton controls. You can then do this to select the value:
But I found that the value was only returned if the groupName parameter was set to the id of the RadioButtonGroup WITHOUT the brackets.
I’m using Flex 3.
simply very nice!!Thanks!!!!!!!!
Thanks for the simple solution for my complex problem.
Comments are closed.
1 | Carro
3 September, 2008 at 12:50 am
How! Very nice tip! I’m adding a id to every RadioButton on my form and try every one. Thank’s.