473,382 Members | 1,647 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,382 software developers and data experts.

RadioButton ReadOnly

Hello misters
I am having troubles impementing the readonly attribute properly. In case
the readonly attribute is set on the server side, I added an
attribute: this.Attributes.Add("onclick","this.checked=!this. checked;");

Too I have test with onclick=return false; onfocus="this.blur();" and
onfocus="window.focus();"
This will disregard the clicking of a radio button option, but the
problematic side effect is that the original radio button in the group that
was checked now gets unchecked. The result is that all the radio buttons in
the group are unchecked.
Any help would be appreciated. Thanks and regards.


--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net

May 24 '07 #1
1 5167

We ( me and the mouse in my pocket) had to go to a fake radio button .gif
for this unforunately.

radiobutton_selected.gif
radiobutton_unselected.gif

Hopefully, someone has a better solution.

Our issue was print-outs. disabled radiobuttons don't print well.


"Alhambra Eidos Kiquenet" <Al*******************@discussions.microsoft.com >
wrote in message news:1E**********************************@microsof t.com...
Hello misters
I am having troubles impementing the readonly attribute properly. In case
the readonly attribute is set on the server side, I added an
attribute: this.Attributes.Add("onclick","this.checked=!this. checked;");

Too I have test with onclick=return false; onfocus="this.blur();" and
onfocus="window.focus();"
This will disregard the clicking of a radio button option, but the
problematic side effect is that the original radio button in the group
that
was checked now gets unchecked. The result is that all the radio buttons
in
the group are unchecked.
Any help would be appreciated. Thanks and regards.


--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net

May 24 '07 #2

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

Similar topics

8
by: VK | last post by:
Hi! What I'm missing in following code? Cannot get the values of radiobuttons. Starting only one class (GetVariant), it works. When I put two classes together, it doesn't. Regards, VK from...
11
by: William Gill | last post by:
I am placing radiobuttons in a 4 X 4 matrix (using loops) and keep references to them in a 2 dimensional list ( rBtns ). It works fine, and I can even make it so only one button per column can be...
0
by: rodrigo | last post by:
I have a Asp.net table control that I dynamically add rows from a SQL database. Inside the table, I add radiobuttons and they all have different ID numbers according to BindChain() Looking In...
3
by: sofie | last post by:
Hello all, I use the following javascript function in a html document to set the level of one of eight available radiobuttons. The line that's commented out works fine under IE, but I need to...
3
by: dave | last post by:
I have half a dozen web form radio buttons on a web form. Each of them is set to postback=true. However, if for instance radiobutton1 is already selected and the user selects it again, it performs...
6
by: Radiobutton via DotNetMonster.com | last post by:
i need help with radiobuttons. i am useing 1button and 2 radiobuttons i am trying to make it so when u select a radiobutton and hit button1 it will clear radiobuttons 1 and 2. -- Message...
1
by: Ryan Liu | last post by:
Hi, I know Form has a KeyPreview property, is there a similar property that can be used to control mouse event that is only processed at the from level, not the controls on it? I am asking...
4
by: Igor | last post by:
RadioButton have property Checked (true or false). If I make RadioButtons with code, without drawing by mouse than I have problems. I write like this: Dim rb(0 To 2) As RadioButton Dim n As...
8
by: =?Utf-8?B?UmljaA==?= | last post by:
If you enclose a group of radiobuttons (option buttons in MS Access) in an option group control (a frame control) in Access -- the frame control will return the index of the option button that is...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.