ComboBoxExtension.BindList(Object) Method
Binds an item list to the ComboBox editor.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
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