BootstrapCheckBoxList Class
In This Article
A control to display a list of check boxes.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v24.2.dll
NuGet Package: DevExpress.Web.Bootstrap
#Declaration
[DXClientDocumentationProviderWeb("BootstrapCheckBoxList")]
[ToolboxTabName("DX.24.2: Bootstrap Controls")]
public class BootstrapCheckBoxList :
ASPxCheckBoxList,
ISimpleRenderControl,
IBootstrapEditorCssClassesOwner,
IBootstrapListItemCaptionOwner
#Remarks
Note
The Bootstrap
- The control’s client-side equivalent is represented by the Bootstrap
Client object.Check Box List - On the client side, the client object can be accessed directly by the name specified via the ASPx
Edit property.Base. Client Instance Name - The available client events can be accessed by using the ASPx
Check property.List Base. Client Side Events
The control’s client-side API is enabled if the ASPx
#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