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 10 2322
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
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
Hi Jay,
What is a radio list box, I do not know that?
Do you mean some radio buttons on a groupBox?
Cor
Hi Jay,
What is a radio list box, I do not know that?
Do you mean some radio buttons on a groupBox?
Cor
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
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
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
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
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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 ?...
|
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...
|
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...
|
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...
|
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,...
|
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 =...
|
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...
|
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....
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |