The requested page is not available for the requested platform. You are viewing the content for Default platform.

BootstrapListBoxField Class

Contains settings that define an individual data field providing values to a list editor.

Namespace: DevExpress.Web.Bootstrap

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

Declaration

public class BootstrapListBoxField :
    ListBoxColumn
Public Class BootstrapListBoxField
    Inherits ListBoxColumn

Remarks

A single item of a list editor can display values obtained from several data fields. By default, the displayed values are separated by a semicolon. This functionality is used by list editors such as the BootstrapComboBox and BootstrapListBox.

Fields are stored in a collection of the BootstrapListBoxFieldCollection type, which can be accessed using the list editor's Fields property. An individual field can be accessed within the collection using indexer notation. A field can be mapped to a data source's column using the ListBoxColumn.FieldName 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>
Note

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

Inheritance

See Also