Tab
A newer version of this page is available. Switch to the current version.

ASPxRadioButton Class

Represents a radio button control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class ASPxRadioButton :
    ASPxCheckBox
Public Class ASPxRadioButton
    Inherits ASPxCheckBox

Remarks

The ASPxRadioButton class represents a button that can be selected, but not cleared, by a user: An ASPxRadioButton control being paired with other radio button controls enables end-users to select a single option from a group of choices. The buttons are grouped logically if they all share the same ASPxRadioButton.GroupName property. The ASPxRadioButton control permits you to intersperse the radio buttons in a group with other content in the page.

The ASPxRadioButton control consists of the edit region (radio button) and the text label:

ASPxRadioButton_control.png

The control's text label can be defined via the ASPxCheckBox.Text property. The text label's alignment relative to the radio button is specified via the ASPxCheckBox.TextAlign property. The ASPxCheckBox.Layout property can be used to control whether the radio button and the text label are displayed in a table or using flow layout.

The state of the radio button control can be specified using the ASPxCheckBox.Checked (via the ASPxRadioButton.Checked) property. A change to the control's state forces the ASPxCheckBox.CheckedChanged (via the ASPxRadioButton.CheckedChanged) event to fire.

NOTE

The client-side equivalent of this editor control is represented by the ASPxClientRadioButton object. The editor's client-side API is enabled if the ASPxEditBase.EnableClientSideAPI property is set to true, or any client event is handled. Available client events can be accessed via the ASPxCheckBox.ClientSideEvents property.

See Also