Tab

ASPxButton.Checked Property

Gets or sets a value indicating whether the button is in the checked state.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll

Declaration

[DefaultValue(false)]
public bool Checked { get; set; }

Property Value

Type Default Description
Boolean

false

true if the button is checked; otherwise, false.

Remarks

The ASPxButton controls can function as radio buttons. To create a mutually exclusive set of buttons, use the ASPxButton.GroupName property to specify a group of button controls. Once the ASPxButton.GroupName property has been set, only one ASPxButton in the specified group can be checked at one time.

Use the Checked property to determine the checked status of the button editor. Changing the Checked property invokes the ASPxClientButton.CheckedChanged (ASPxButton.CheckedChanged) event.

Example

This part of the ASPxButton - Features online demo illustrates how to use a button’s ASPxButton.Checked property.

...
<dxe:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" Checked="True"
   GroupName="G" Text="Option 1" Width="110px">
</dxe:ASPxButton>
...
<dxe:ASPxButton ID="ASPxButton2" runat="server" AutoPostBack="False" GroupName="G"
   Text="Option 2" Width="110px">
</dxe:ASPxButton>
...
<dxe:ASPxButton ID="ASPxButton3" runat="server" AutoPostBack="False" GroupName="G"
   Text="Option 3" Width="110px">
</dxe:ASPxButton>
See Also