A newer version of this page is available.
Switch to the current version.
BootstrapCheckBox Class
Represents the check box control.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v18.2.dll
Declaration
[ToolboxTabName("DX.18.2: Bootstrap Controls")]
[DXClientDocumentationProviderWeb("BootstrapCheckBox")]
public class BootstrapCheckBox :
ASPxCheckBox,
ISimpleRenderControl,
IBootstrapEditorCssClassesOwner
<ToolboxTabName("DX.18.2: Bootstrap Controls")>
<DXClientDocumentationProviderWeb("BootstrapCheckBox")>
Public Class BootstrapCheckBox
Inherits ASPxCheckBox
Implements ISimpleRenderControl,
IBootstrapEditorCssClassesOwner
Remarks
NOTE
The BootstrapCheckBox control provides you with comprehensive client-side functionality implemented using JavaScript code (see DevExpress.Web.Bootstrap.Scripts to learn more):
- The control's client-side equivalent is represented by the BootstrapClientCheckBox object.
- On the client side, the client object can be accessed directly by the name specified via the ASPxEditBase.ClientInstanceName property.
- The available client events can be accessed by using the ASPxCheckBox.ClientSideEvents property.
The control's client-side API is enabled if the ASPxEditBase.EnableClientSideAPI property is set to true, or the ASPxEditBase.ClientInstanceName property is defined, or any client event is handled.
Examples
This example demonstrates how to activate the third, "Intermediate", state in the Check Box control.
- Initialize a new instance of the BootstrapCheckBox class.
- Use the ASPxCheckBox.Text to specify the check box's text.
- Assign true to the ASPxCheckBox.AllowGrayed property to allow the control to have three check states. The default check state is specified by the ASPxCheckBox.CheckState property.
<dx:BootstrapCheckBox runat="server" Text="A sample text" AllowGrayed="true" CheckState="Indeterminate">
</dx:BootstrapCheckBox>
Inheritance
See Also
Feedback