BootstrapCheckBoxList Class
A control to display a list of check boxes.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v24.1.dll
NuGet Package: DevExpress.Web.Bootstrap
Declaration
[DXClientDocumentationProviderWeb("BootstrapCheckBoxList")]
[ToolboxTabName("DX.24.1: Bootstrap Controls")]
public class BootstrapCheckBoxList :
ASPxCheckBoxList,
ISimpleRenderControl,
IBootstrapEditorCssClassesOwner,
IBootstrapListItemCaptionOwner
Remarks
Note
The BootstrapCheckBoxList control provides you with comprehensive client-side functionality implemented using JavaScript code:
- The control’s client-side equivalent is represented by the BootstrapClientCheckBoxList 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 ASPxCheckListBase.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.
Example
This example demonstrates the basic functionality of the Check Box List control.
- Initialize a new instance of the
BootstrapCheckBoxList
class. - Add required BootstrapListEditItem objects to the BootstrapCheckBoxList.Items collection.
- Use the ListEditItem.Text property to specify the list box item’s text.
- The ListEditItem.Selected property specifies whether the corresponding item is checked.
The image below shows the result:
<dx:BootstrapCheckBoxList runat="server">
<Items>
<dx:BootstrapListEditItem Text="WinForms" Value="WinForms" />
<dx:BootstrapListEditItem Text="ASP.NET" Value="ASP.NET" Selected="true" />
<dx:BootstrapListEditItem Text="ASP.NET MVC" Value="ASP.NET MVC" Selected="true" />
<dx:BootstrapListEditItem Text="WPF" Value="WPF" />
</Items>
</dx:BootstrapCheckBoxList>
Inheritance
See Also