Link to home
Start Free TrialLog in
Avatar of newjeep19
newjeep19Flag for United States of America

asked on

how to clear a selected item radio button in one radio button list when a radio button in a different list is checked

I have 3 radio button lists. I want to clear any selections  that where made in one radio button list when another radio button is clicked on from a different radio button list.
I have tried using both:

 //deslect radbutton list items
  radReportTypeAppT3.ClearSelection();
   radReportTypeAppT4.ClearSelection();

and
 //deslect radbutton list items
 radReportTypeAppT3.SelectedIndex = -1;
 radReportTypeAppT4.SelectedIndex = -1;

In each case the previously selected radio button from the other list was not deselected when the new radio button from another list was clicked on.
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

This is the default behavior for when all RadioButtons are in the same list .  Why are they not in the same list?...
ASKER CERTIFIED SOLUTION
Avatar of sarabande
sarabande
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of newjeep19

ASKER

They are not in the same list because I need to separate the radio button list by market
you could place and visualize a radio button list as you will. when creating the list you would place them all into one group. later you could move each button to any arbitrary place.

Sara
thank  you