BootstrapCheckBoxList.Items Property
In This Article
Gets the collection of items in the Check Box List.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v24.2.dll
NuGet Package: DevExpress.Web.Bootstrap
#Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
[Themeable(false)]
public BootstrapListEditItemCollection Items { get; }
#Property Value
Type | Description |
---|---|
Bootstrap |
A Bootstrap |
#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>
See Also