asp.net.ph

RadioButtonList Class

System.Web.UI.WebControls Namespace


Renders a group of RadioButton controls.

RadioButtonList Class Members

Collapse   Constructors

Visibility Constructor Parameters
public RadioButtonList ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public CellPadding Int32 [ Get , Set ]
public CellSpacing Int32 [ Get , Set ]
public RenderWhenDataEmpty Boolean [ Get , Set ]
public RepeatColumns Int32 [ Get , Set ]
public RepeatDirection RepeatDirection [ Get , Set ]
public RepeatLayout RepeatLayout [ Get , Set ]
public TextAlign TextAlign [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
protected CreateControlStyle ( ) Style
protected FindControl ( String id , Int32 pathOffset ) Control
protected GetItemStyle ( ListItemType itemType , Int32 repeatIndex ) Style
protected LoadPostData ( String postDataKey , NameValueCollection postCollection ) Boolean
protected RaisePostDataChangedEvent ( ) Void
protected RenderItem ( ListItemType itemType , Int32 repeatIndex , RepeatInfo repeatInfo , HtmlTextWriter writer ) Void

Remarks

The RadioButtonList control provides page developers with a single-selection radio button group that can be dynamically generated via data binding. It contains an Items collection with members that correspond to individual items on the list. To determine which item is selected, test the SelectedItem property of the list.

You can specify the rendering of the list with the RepeatLayout and RepeatDirection properties. If RepeatLayout is set to RepeatLayout.Table ( the default setting ), the list will be rendered within a table. If it is set to RepeatLayout.Flow, the list will be rendered without any tabular structure. By default, RepeatDirection is set to RepeatDirection.Vertical. Setting this property to RepeatDirection.Horizontal will render the list horizontally.

The RadioButtonList control provides convenient data binding capabilities. However, individual RadioButton controls provide greater control over layout.

For examples illustrating use of this control, see the individual member types of this class. For syntax information, see RadioButtonList in ASP.NET Syntax for Web Controls.

See Also

ListControl   CheckBoxList Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph