[thelist] Uncheck Items in Radio Button List

Matt Warden mwarden at gmail.com
Wed Jun 6 15:13:13 CDT 2007


On 6/6/07, Casey Crookston <caseyc at intellisoftmn.com> wrote:
> In .net 2.0, how would you un-select all items in a radio-button list?

Purist answer: you can't, and it has nothing to do with .NET. A radio
button by definition must have an item selected.

If you are having trouble getting no default selection in .NET, it may
be because they are honoring this definition. Even if you were to get
.NET to not specify a default, you cannot keep the user agent from
selecting a default (e.g. the first button).

Either way, I would suggest you rethink your use of radio buttons vs.
some other element. Alternatively, offer a "none" option and select it
by default.

-- 
Matt Warden
Cleveland, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.



More information about the thelist mailing list