RadioButtonGroup with no default value


Author
Message
fansanitis
fansanitis
StrataFrame Novice (63 reputation)StrataFrame Novice (63 reputation)StrataFrame Novice (63 reputation)StrataFrame Novice (63 reputation)StrataFrame Novice (63 reputation)StrataFrame Novice (63 reputation)StrataFrame Novice (63 reputation)StrataFrame Novice (63 reputation)StrataFrame Novice (63 reputation)
Group: Forum Members
Posts: 45, Visits: 103
I've setup a RadioButtonGroup with 5 options (values 0-4) on a user control.  The designer sets the Checked property of the option with the value of 0 to True.  I manually change the property back to False and save the file.  Everythings looks fine at this point, no options with a Checked property of True.  I close the user control designer in VS and then reopen it and the option with the value of 0 is "checked" again.

I want the user control to render with no option selected and if the BO is saved without the user making a selection I want a required field broken rule to be displayed.  Can I make the RadioButtonGroup do this?

Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Just return an alternate value on NULL and set it to a -1 or something like that.  This way you do not have a collision of values and NULL.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search