BootstrapListBoxFieldCollection Class
Represents a collection of list editor data fields.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v24.2.dll
Declaration
Related API Members
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.