Skip to main content
A newer version of this page is available. .

ComboBoxExtension.BindList(Object) Method

Binds an item list to the ComboBox editor.

Namespace: DevExpress.Web.Mvc

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

Declaration

public ComboBoxExtension BindList(
    object dataObject
)

Parameters

Name Type Description
dataObject Object

An object representing the bound data source.

Returns

Type Description
ComboBoxExtension

A ComboBoxExtension object representing the ComboBox.

Remarks

Example

@Html.DevExpress().ComboBox(settings => {
    settings.Name = "comboBox4";
    ...
    settings.Properties.Columns.Add("ContactName", "ContactName", 130);
    settings.Properties.Columns.Add("CompanyName", "CompanyName", Unit.Percentage(100));
    settings.Properties.Columns.Add("Country", "Country", 60);
    settings.Properties.Columns.Add("Phone", "Phone", 100);
}).BindList(Model).GetHtml()

Online Demo

See Also