Skip to main content

BootstrapComboBoxProperties.Fields Property

Provides access to a ComboBox’s field collection.

Namespace: DevExpress.Web.Bootstrap

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

NuGet Package: DevExpress.Web.Bootstrap

Declaration

[PersistenceMode(PersistenceMode.InnerProperty)]
[Themeable(false)]
public BootstrapListBoxFieldCollection Fields { get; }

Property Value

Type Description
BootstrapListBoxFieldCollection

A BootstrapListBoxFieldCollection object which represents a collection of all the fields within a ComboBox.

Remarks

This property stores all the fields present in the ComboBox control. It allows you to add and delete fields using the appropriate methods.

Individual fields can be accessed using indexed notation or the bound field name as parameters. If the bound field name is used as an indexer and there are several fields with the same name, the first field found in the collection will be returned.

The Fields property synchronizes its value with the editor’s BootstrapComboBox.Fields property.

<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>
See Also