Skip to main content

BootstrapListBoxFieldCollection Class

Represents a collection of list editor data fields.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v23.2.dll

NuGet Package: DevExpress.Web.Bootstrap

Declaration

public class BootstrapListBoxFieldCollection :
    ListBoxColumnCollection

The following members return BootstrapListBoxFieldCollection objects:

Remarks

List editors (such as the Combo Box and List Box) store their data fields within a collection which is represented by an instance of the BootstrapListBoxFieldCollection class. This collection can be accessed via the list editor’s Fields property. The properties and methods exposed by the BootstrapListBoxFieldCollection class can be used to perform common collection operations, such as adding or deleting fields. Each field within the collection is represented by a BootstrapListBoxField object. Individual fields can be accessed using indexer notation.

<dx:BootstrapComboBox ID="ComboBoxCustomFiltering" runat="server" OnCustomFiltering="ComboBoxCustomFiltering_CustomFiltering"
    DataSourceID="CustomersDataSource" ValueField="CustomerID" ValueType="System.String" EnableCallbackMode="true">
    <Fields>
        <dx:BootstrapListBoxField FieldName="CompanyName" />
        <dx:BootstrapListBoxField FieldName="Country" />
    </Fields>
</dx:BootstrapComboBox>
<ef:EntityDataSource runat="server" ID="CustomersDataSource" ContextTypeName="DevExpress.Web.Demos.NorthwindContextSL" EntitySetName="Customers">
</ef:EntityDataSource>

Note

The Custom Filtering online demo shows the result of the code executed above.

Inheritance

Object
StateManagedCollectionBase
Collection
DevExpress.Web.Internal.WebColumnCollectionBase
ListBoxColumnCollection
BootstrapListBoxFieldCollection
See Also