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

  • Thread starter Thread starter Jay
  • Start date Start date
J

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
 
Just a note that I decided to go with a 'group' of single radio buttons.
It'll do what I need.

Thanks anyway.
 
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
 
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
 
Back
Top