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

Radio List Box -- Disabling one item (Quite Urgent)

Jay
Good afternoon,

I have a radio list box called rblNavigateOptions and I need to be able to
simply set one of those radio items to disabled before any item is selected
by a user.

ie.
When the rblNavigateOptions control is created one or some of the items it
contains are disabled.
Is there any way to do this with a list or do I have to use individual radio
buttons for each and everyone one of the Options I want to include?

Thanks in advance,

Jay
Nov 20 '05 #1
10 2320
Jay
Just a note that I decided to go with a 'group' of single radio buttons.
It'll do what I need.

Thanks anyway.

"Jay" <jg********@scf.sk.ca> wrote in message
news:Ox**************@TK2MSFTNGP09.phx.gbl...
Good afternoon,

I have a radio list box called rblNavigateOptions and I need to be able to
simply set one of those radio items to disabled before any item is selected by a user.

ie.
When the rblNavigateOptions control is created one or some of the items it
contains are disabled.
Is there any way to do this with a list or do I have to use individual radio buttons for each and everyone one of the Options I want to include?

Thanks in advance,

Jay

Nov 20 '05 #2
Jay
Just a note that I decided to go with a 'group' of single radio buttons.
It'll do what I need.

Thanks anyway.

"Jay" <jg********@scf.sk.ca> wrote in message
news:Ox**************@TK2MSFTNGP09.phx.gbl...
Good afternoon,

I have a radio list box called rblNavigateOptions and I need to be able to
simply set one of those radio items to disabled before any item is selected by a user.

ie.
When the rblNavigateOptions control is created one or some of the items it
contains are disabled.
Is there any way to do this with a list or do I have to use individual radio buttons for each and everyone one of the Options I want to include?

Thanks in advance,

Jay

Nov 20 '05 #3
Cor
Hi Jay,

What is a radio list box, I do not know that?

Do you mean some radio buttons on a groupBox?

Cor
Nov 20 '05 #4
Cor
Hi Jay,

What is a radio list box, I do not know that?

Do you mean some radio buttons on a groupBox?

Cor
Nov 20 '05 #5
Jay
Sorry, I meant a radiobuttonlist
"Cor" <no*@non.com> wrote in message
news:O7**************@TK2MSFTNGP09.phx.gbl...
Hi Jay,

What is a radio list box, I do not know that?

Do you mean some radio buttons on a groupBox?

Cor

Nov 20 '05 #6
Jay
Sorry, I meant a radiobuttonlist
"Cor" <no*@non.com> wrote in message
news:O7**************@TK2MSFTNGP09.phx.gbl...
Hi Jay,

What is a radio list box, I do not know that?

Do you mean some radio buttons on a groupBox?

Cor

Nov 20 '05 #7
Cor
Hi Jay,

You mean something as this?
( a little bit stupid code)

Cor
\\\
Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
Me.RadioButtonList1.Items.Add("0")
Me.RadioButtonList1.Items.Add("1")
Me.RadioButtonList1.Items.Add("2")
Me.RadioButtonList1.Items.RemoveAt(1)
End If
End Sub
///
\\\
Private Sub Button2_Click(ByVal sender As _
System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.RadioButtonList1.Items.Insert(1, "1")
End Sub
///

Cor
Nov 20 '05 #8
Cor
Hi Jay,

You mean something as this?
( a little bit stupid code)

Cor
\\\
Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
Me.RadioButtonList1.Items.Add("0")
Me.RadioButtonList1.Items.Add("1")
Me.RadioButtonList1.Items.Add("2")
Me.RadioButtonList1.Items.RemoveAt(1)
End If
End Sub
///
\\\
Private Sub Button2_Click(ByVal sender As _
System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.RadioButtonList1.Items.Insert(1, "1")
End Sub
///

Cor
Nov 20 '05 #9
Jay
Not quite but thanks,

The issue I was having was being able to enable or disable certain items
within the radiobuttonlist but there doesn't appear to be an extension of
the radiobuttonlist1 that allows direct access to each individual item (at
least for the 'enabled' property). I've found a work around of just adding a
bunch of radiobuttons to the page and making them all part of the same
group. Not as pretty code-wise but still meets my needs.

Thanks again,

Jay
"Cor" <no*@non.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
Hi Jay,

You mean something as this?
( a little bit stupid code)

Cor
\\\
Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
Me.RadioButtonList1.Items.Add("0")
Me.RadioButtonList1.Items.Add("1")
Me.RadioButtonList1.Items.Add("2")
Me.RadioButtonList1.Items.RemoveAt(1)
End If
End Sub
///
\\\
Private Sub Button2_Click(ByVal sender As _
System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.RadioButtonList1.Items.Insert(1, "1")
End Sub
///

Cor

Nov 20 '05 #10
Jay
Not quite but thanks,

The issue I was having was being able to enable or disable certain items
within the radiobuttonlist but there doesn't appear to be an extension of
the radiobuttonlist1 that allows direct access to each individual item (at
least for the 'enabled' property). I've found a work around of just adding a
bunch of radiobuttons to the page and making them all part of the same
group. Not as pretty code-wise but still meets my needs.

Thanks again,

Jay
"Cor" <no*@non.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
Hi Jay,

You mean something as this?
( a little bit stupid code)

Cor
\\\
Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
Me.RadioButtonList1.Items.Add("0")
Me.RadioButtonList1.Items.Add("1")
Me.RadioButtonList1.Items.Add("2")
Me.RadioButtonList1.Items.RemoveAt(1)
End If
End Sub
///
\\\
Private Sub Button2_Click(ByVal sender As _
System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.RadioButtonList1.Items.Insert(1, "1")
End Sub
///

Cor

Nov 20 '05 #11

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

Similar topics

1
by: John Mullen | last post by:
I want to take the following HTLM and use javascript to turn on radio buttons if checkbox is checked, can I do this with javascript (maybe onClick or an array) or do i need a server side script ?...
6
by: sakms | last post by:
I am attempting to validate radio buttons in Netscape with JavaScript. Everything works excellent in Explorer, but refuses to work in Netscape (all versions). =========== JAVASCRIPT CODE...
1
by: MickG | last post by:
I am trying to change the value of the variable "hard" according to which radio button is pressed and I am having no joy. Could anyone help me with this, the problematic section is marked with...
4
by: TS | last post by:
My objective: To create a survey that asks people to rate a list of things in order of importance. I wish to prevent them from just rating every item in the list the same value. For example the...
4
by: tedqn | last post by:
I have a form with checkboxes and radio buttons which, onClick, run an XmlHttp call to retrieve sub questions for that particular box (AJAX). The problem is if user click on several boxes too fast,...
1
by: John Criswell | last post by:
I have created a radio button list programmatically. C# SqlConnection conn = new SqlConnection("data source=localhost; integrated security=true; initial catalog=pubs"); SqlCommand cmdAuthors =...
10
by: Jay | last post by:
Good afternoon, I have a radio list box called rblNavigateOptions and I need to be able to simply set one of those radio items to disabled before any item is selected by a user. ie. When the...
0
by: krizzie khonnie | last post by:
How can I Disable a Radio Button if it's a Radio Group. Example, there's a two radio button, Value and Group, in a radio group. Now I want to disable Radio Button Value when I create a Parent Item....
11
by: Twayne | last post by:
Hi, Newbie to PHP here, no C or other relevant background, so pretty niave w/r to the nuances etc. but I think this is pretty basic. XP Pro, SP2+, PHP 4.4.7, XAMPP Local Apache Server...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.