Results 1 to 9 of 9

Thread: [RESOLVED] Radio Buttons not grouping correctly?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Resolved [RESOLVED] Radio Buttons not grouping correctly?

    I have a 2 groups of Radio Button controls on my web page that are dynamically loaded. They are contained within a DataList control. I have the "GroupName" property set for each of the groups, however, I am still able to click on more than one rdo within each group. I've set the "GroupName" property within my HTML markup. Not sure what I've missed.

    Thanks,
    Blake

  2. #2
    Frenzied Member avrail's Avatar
    Join Date
    Mar 2006
    Location
    Egypt, Cairo
    Posts
    1,221

    Re: Radio Buttons not grouping correctly?

    hay,
    are you using RadioButton or RadioButtonList because if it was RadioButtonList then this will not happen, when you chose item in the group
    You Don't Have to Rate Me.
    I'm Not a Civilized Man I'm the Civilization it self
    White or Black, Living or Dieing and 0 or 1 that's MY life
    iam an Object in Object Oriented Life
    my blog : http://refateid.blogspot.com/
    twitter :@avrail
    010011000111010101110110001000000100110101111001001000000101000001100011

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: Radio Buttons not grouping correctly?

    I'm just using RadioButton, not RadioButtonList...
    Blake

  4. #4
    Frenzied Member avrail's Avatar
    Join Date
    Mar 2006
    Location
    Egypt, Cairo
    Posts
    1,221

    Re: Radio Buttons not grouping correctly?

    then you should use RadioButtonList
    You Don't Have to Rate Me.
    I'm Not a Civilized Man I'm the Civilization it self
    White or Black, Living or Dieing and 0 or 1 that's MY life
    iam an Object in Object Oriented Life
    my blog : http://refateid.blogspot.com/
    twitter :@avrail
    010011000111010101110110001000000100110101111001001000000101000001100011

  5. #5
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Radio Buttons not grouping correctly?

    Blake,

    If you are creating the RadioButton's dynamically, how can you be setting the GroupName property in the HTML markup?

    Can you show the code that you are using, both the ASPX markup, and the server side code?

    Gary

  6. #6

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: Radio Buttons not grouping correctly?

    GAry,

    I think that might have been my problem. I was dragging the rdo control into the markup and setting it in there. Anyway, I tried using the RDOList and that is working fine for me. In fact, it's probably better than the DataList control for what I'm using it for.

    Thanks,
    Blake

  7. #7
    Frenzied Member avrail's Avatar
    Join Date
    Mar 2006
    Location
    Egypt, Cairo
    Posts
    1,221

    Re: [RESOLVED] Radio Buttons not grouping correctly?

    sure you can do this also for radio button also but it will need extra code
    You Don't Have to Rate Me.
    I'm Not a Civilized Man I'm the Civilization it self
    White or Black, Living or Dieing and 0 or 1 that's MY life
    iam an Object in Object Oriented Life
    my blog : http://refateid.blogspot.com/
    twitter :@avrail
    010011000111010101110110001000000100110101111001001000000101000001100011

  8. #8
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Radio Buttons not grouping correctly?

    Quote Originally Posted by blakemckenna View Post
    GAry,

    I think that might have been my problem. I was dragging the rdo control into the markup and setting it in there. Anyway, I tried using the RDOList and that is working fine for me. In fact, it's probably better than the DataList control for what I'm using it for.

    Thanks,
    Agreed. I can't see how you could have been combining the two, as you were suggesting. Sounds like the RadioButtonList will be the best control for you.

    Gary

  9. #9

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: [RESOLVED] Radio Buttons not grouping correctly?

    Yep,

    It was Gary!

    Thanks,
    Blake

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width