Thanks, but the issue I am having is that I am using repeaters and not radiogroupbuttons..
On Aug 24, 3:28 pm, Vaibhav Seth <[email protected]> wrote: > Loop over the children of the radio button's container. Check for if (child > is RadioButton), in the same if condition you can check if that child(radio > button) is selected or not and keep adding the value to the counter. > > Bottom line instead of maintaining your own array, use the child array of > the parent and do code your logic based on that array. > > Alternately, make it event driven, keep tracking the change event of all the > radio buttons you add and update your counter accordingly on the select and > de-select. > > > > > > > > > > On Wed, Aug 24, 2011 at 7:30 AM, jeroen <[email protected]> wrote: > > I understand, but I have a lot of radiobuttons, I am want to keep it > > as dynamic as possible, this way I would have to check every single rb > > for its value. > > > I am not necessary stuck in arrays, if there is another idea thats > > also fine... > > I am just having a brain fart and just cannot seem to get it right.... > > > All I need is the total sum of a group of radiobuttons > > > On Aug 24, 10:04 am, GAGAN anand <[email protected]> wrote: > > > Currently I dont have any example. > > > > I can explain you. On click of radio button, you can get the label and > > that > > > you can compare stored in your XMLListCollection. If it exist, you can > > > replace it. > > > > Hope you got it now. > > > > On 24 August 2011 13:00, jeroen <[email protected]> wrote: > > > > > Are there any examples? > > > > > I am using a XMLListCollection > > > > > On Aug 24, 9:18 am, GAGAN anand <[email protected]> wrote: > > > > > Hi, > > > > > > I think there is a replace method in array. You can use that. > > > > > > Or you can make use of arraycollection. Then you will better hold to > > > > replace > > > > > the radio button. > > > > > > Hope this helps > > > > > > Regards > > > > > Gagan Deep > > > > > On 24 August 2011 12:07, jeroen <[email protected]> wrote: > > > > > > > I have a radiogroup and a onchange function on the radiobutton that > > > > > > inserts the data into an array > > > > > > > My issue is the following, I need the sum of all the radiobuttons > > > > > > values which works, but if the user changes his mind and reselects > > a > > > > > > radiobutton it inserts a extra item into the array, the total is > > now > > > > > > incorrect. I am using push, I know this is wrong, but how to do you > > > > > > add to the array and a index without adding extra items > > > > > > > Thanks > > > > > > > -- > > > > > > You received this message because you are subscribed to the Google > > > > Groups > > > > > > "Flex India Community" group. > > > > > > To post to this group, send email to [email protected]. > > > > > > To unsubscribe from this group, send email to > > > > > > [email protected]. > > > > > > For more options, visit this group at > > > > > >http://groups.google.com/group/flex_india?hl=en. > > > > > > -- > > > > > *Thanks* > > > > > *Gagan Deep* > > > > > -- > > > > You received this message because you are subscribed to the Google > > Groups > > > > "Flex India Community" group. > > > > To post to this group, send email to [email protected]. > > > > To unsubscribe from this group, send email to > > > > [email protected]. > > > > For more options, visit this group at > > > >http://groups.google.com/group/flex_india?hl=en. > > > > -- > > > *Thanks* > > > *Gagan Deep* > > > -- > > You received this message because you are subscribed to the Google Groups > > "Flex India Community" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > >http://groups.google.com/group/flex_india?hl=en. > > -- > Thanks, > Vaibhav Seth. -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

