473,325 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

How to make only one radio button selectable in Datalist?

I have a datalist that I have inserted a radio button into. The datalist
populates with a list of items and each one has a radio button next to it. I
need to use the radio button to allow the user to select a default item so
when the user clicks one of the radio buttons, it needs to clear the checked
property from the rest. This is default behavior for the radio button, but
it doesn't work when it is embedded into a datalist. I have tried assigning
the group name to the radio button but it just ignores it in this case.
Anyone have any ideas?

Thanks in advance!
Nov 19 '05 #1
3 5919
Hi David,

It looks like this is a bug that applies also to the datalist.

BUG: Radio Buttons Are Not Mutually Exclusive When Used in a Repeater Server
Control

http://support.microsoft.com/default...b;en-us;316495

"David Hearn" <da*********@stagparkway.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I have a datalist that I have inserted a radio button into. The datalist
populates with a list of items and each one has a radio button next to it.
I need to use the radio button to allow the user to select a default item
so when the user clicks one of the radio buttons, it needs to clear the
checked property from the rest. This is default behavior for the radio
button, but it doesn't work when it is embedded into a datalist. I have
tried assigning the group name to the radio button but it just ignores it
in this case. Anyone have any ideas?

Thanks in advance!


Nov 19 '05 #2
I wonder if you can use a stripped-down datagrid rather than a datalist to
get around the bug?

"David Hearn" <da*********@stagparkway.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I have a datalist that I have inserted a radio button into. The datalist
populates with a list of items and each one has a radio button next to it.
I need to use the radio button to allow the user to select a default item
so when the user clicks one of the radio buttons, it needs to clear the
checked property from the rest. This is default behavior for the radio
button, but it doesn't work when it is embedded into a datalist. I have
tried assigning the group name to the radio button but it just ignores it
in this case. Anyone have any ideas?

Thanks in advance!


Nov 19 '05 #3
Thanks for your reply Ken. Looks like I will have to try the stripped down
datagrid.

"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:uS**************@TK2MSFTNGP10.phx.gbl...
I wonder if you can use a stripped-down datagrid rather than a datalist to
get around the bug?

"David Hearn" <da*********@stagparkway.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I have a datalist that I have inserted a radio button into. The datalist
populates with a list of items and each one has a radio button next to it.
I need to use the radio button to allow the user to select a default item
so when the user clicks one of the radio buttons, it needs to clear the
checked property from the rest. This is default behavior for the radio
button, but it doesn't work when it is embedded into a datalist. I have
tried assigning the group name to the radio button but it just ignores it
in this case. Anyone have any ideas?

Thanks in advance!

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dave | last post by:
Hi, there used to be a simple javascript quiz builder in builder.com, with which I made the page whose code is given below. I would like to tweak this so that there are only three (not 4) answer...
0
by: darkelf | last post by:
Hello I have a aspx page with a two datalist controls. Inside them I have some radio buttons that are created with data binding for the user to choose. It displays a question and user has to choose...
4
by: Jared | last post by:
Radio Button or Check Box and Event Procedures I need to insert either radio buttons or check boxes onto my form. I'm not sure which to use, or if there are other options. I am using the buttons...
0
by: manu_srinivasa | last post by:
:( Here is my design, we have user control placed in a aspx page. within user control, i am having datalist, within datalist i am placing radio button. On click of radio button, i need to...
1
by: pierre.basson | last post by:
Hi, I have a DataList that contains an image and 3 radio buttons. The radio buttons are used to change the status of the image i.e. Approved, Suspended and Deleted. When the form loads, I want...
3
by: pierre.basson | last post by:
Hi, I have a DataList with an Item Template that contains an image and three radio buttons, which are used to indicate the image's status. How can I set the appropriate radio button to checked,...
0
by: David Hearn | last post by:
I have a datalist with an ItemTemplate set up. In the item template, I have a radio button. I have set the groupname on the radio button so that you should only be able to have one radio button...
1
by: Vikas Kumar | last post by:
i am selectin some data from database and through reader showing it in datalist as above now for radio buttons i have single column which returns 1,2,3 and according to that i want one of above...
16
by: Vikas Kumar | last post by:
i am selectin some data from database and through reader showing it in datalist as above now for radio buttons i have single column which returns 1,2,3 and according to that i want one of above...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.