RadioButtonList Control

A

axapta

How can I programmatically change the selected item within the above
control. I only have 2 items within it and I want to set the default
(programmatically) to item 1.
I've tried rdselector.items(1).selectedvalue = true (or something along
those lines) but the item selected does not change. I've tried 0 as well.

TIA
 
C

Cor Ligthert[MVP]

Axapta,

In fact the radio button are almost useless without setting them in pairs in
a groupbox.
(Or you should only have two)

If you select then one, then the other is changed automaticly

For some it is a strange behaviour that if you use data binding, you have
only to bind one.

Cor
 
A

axapta

Hi Cor,
I don't quite understand what you are saying in relation to my problem.

I have a radiobuttonlist - 2 items. The first item is defaulted, however
the user is able to choose the 2nd item if they want. I have a button which
clears all the controls on my form (text boxes, DDL's). I want the
radiobuttoblist to be reset (when this button is clicked) to item1 if it is
set to item2.

Thanks
 
C

Cor Ligthert[MVP]

If you set 1 then 2 is reset, that is automaticly and vice versa the same.

Cor
 
F

Family Tree Mike

What is a RadioButtonList? I don't have such a control. As Cor says, you
would normally add radio buttons to a panel or other such container to make
your own Radio Button List.

Is this a custom control you got from somewhere, or are you refering to a
CheckedListBox?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top